Fix #4697: Better UX for disabling tooltips.

This commit is contained in:
evazion
2021-02-05 02:25:00 -06:00
parent 1f637867a4
commit 620c9e9ac9
2 changed files with 10 additions and 5 deletions

View File

@@ -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>