Fix #4697: Better UX for disabling tooltips.
This commit is contained in:
@@ -31,8 +31,12 @@
|
||||
<%= link_to "#{@post.rating.upcase}", posts_path(tags: "rating:#{@post.pretty_rating}"), class: "post-tooltip-rating post-tooltip-info" %>
|
||||
<%= link_to "#{@post.image_width}x#{@post.image_height}", @post.file_url, class: "post-tooltip-dimensions post-tooltip-info" %>
|
||||
|
||||
<%= link_to "#", class: "post-tooltip-disable", title: "Disable enhanced tooltips" do %>
|
||||
<%= close_icon %>
|
||||
<%= render PopupMenuComponent.new do |menu| %>
|
||||
<%= menu.item do %>
|
||||
<%= link_to "javascript:void(0)", class: "post-tooltip-disable" do %>
|
||||
<%= close_icon %> Disable tooltips
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user