posts: add "view original" sidebar option.
* Add a "View original" sidebar option. * Rename the "View large" sidebar option to "View smaller". * Remove the "Loading..." message when switching image sizes. * Fix the V hotkey not working after using it once. * Change #image-resize-link to .image-view-original link (note that there are two of these links now, one in the notice bar and one in the sidebar). * Add a `data-post-current-image-size` attribute on the <body> element and use it to control visibility of links and notices.
This commit is contained in:
@@ -433,6 +433,12 @@ div#c-posts {
|
||||
}
|
||||
}
|
||||
|
||||
body[data-post-current-image-size="large"] .image-view-large-link,
|
||||
body[data-post-current-image-size="original"] .image-view-original-link,
|
||||
body[data-post-current-image-size="original"] #image-resize-notice {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#c-post-versions, div#c-artist-versions {
|
||||
div#a-index {
|
||||
a {
|
||||
|
||||
Reference in New Issue
Block a user