posts: add back "resize to window" link.
* Add back "Resize to window" link. * Add Z shortcut for resize to window link (mnemonic: Z for zoom image). * Resize images to screen width by default on both desktop and mobile. * Make it so that notes are nested directly inside the .image-container element with the image, instead of inside a separate .note-container element. This means .image-container and .note-container are now the same element. This is so that the size of the .note-container is driven by the size of the image, which ensures that notes are automatically resized as the image is resized.
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
<ul>
|
||||
<% if policy(post).visible? %>
|
||||
<li id="post-option-resize-to-window">
|
||||
<%= link_to "Resize to window", "#", class: "image-resize-to-window-link", "data-shortcut": "z" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% 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" %>
|
||||
|
||||
Reference in New Issue
Block a user