Merge pull request #4320 from BrokenEagle/note-dimension-percentages

Convert notes to use percentages instead of exact coordinates
This commit is contained in:
evazion
2020-03-20 16:26:02 -05:00
committed by GitHub
8 changed files with 174 additions and 196 deletions

View File

@@ -1,7 +1,9 @@
<ul>
<li id="post-option-resize-to-window">
<%= link_to "Resize to window", "#", id: "image-resize-to-window-link" %>
</li>
<% if post.visible? && post.has_large? && !post.is_ugoira? %>
<li id="post-option-view-large" style="<%= CurrentUser.default_image_size == "original" ? "" : "display: none;" %>">
<%= link_to "View large", post.tagged_large_file_url, id: "image-view-large-link" %>
</li>
<% end %>
<li id="post-option-find-similar">
<%= link_to "Find similar", iqdb_queries_path(post_id: post.id) %>
</li>

View File

@@ -61,7 +61,6 @@
</div>
<%= f.input :style_usernames, :as => :select, :label => "Colored usernames", :hint => "Color users according to their user level", :include_blank => false, :collection => [["Yes", "true"], ["No", "false"]] %>
<%= f.input :always_resize_images, :as => :select, :include_blank => false, :label => "Fit images to window", :hint => "Make images fit screen width by default", :collection => [["Yes", "true"], ["No", "false"]] %>
<%= f.input :enable_post_navigation, :as => :select, :include_blank => false, :label => "Enable keyboard shortcuts", :hint => "Enable keyboard shortcuts", :collection => [["Yes", "true"], ["No", "false"]] %>
<%= f.input :enable_sequential_post_navigation, :as => :select, :label => "Enable post navigation", :hint => "Show prev/next links when viewing a post", :include_blank => false, :collection => [["Yes", "true"], ["No", "false"]] %>
<%= f.input :new_post_navigation_layout, :as => :select, :label => "Navigation bar position", :include_blank => false, :collection => [["Below", "true"], ["Above", "false"]], :hint => "When browsing pools or posts, place navigation links above or below the image" %>