I like to use Fit (Vertical) for media. The problem with that is that navigation, i.e. header pushes the media outside of viewport despite max-height: calc(100vh - 5rem); being applied to the image; 5rem isn't enough and this isn't flexible.
To be clear, by "pushing outside of viewport" I meant that the bottom gets cut off, requiring me to scroll every time I open a post page.
My only quick and dirty fix at the moment is to hide/shrink navigation and nav links on top of the media (add to Custom CSS ):
/* Hide top navigation (site header) */
body.c-posts nav.navigation {
display: none;
}
/* Shrink query/pool navigation above media */
body.c-posts #nav-links-top {
max-height: 4.5em; /* Seems to be enough */
overflow: hidden;
}
/* Unshrink on hover */
body.c-posts #nav-links-top:hover {
max-height: unset;
}Nav links are very tall, and thus a problem, on submissions that belong to multiple pools, such as this:
https://e621.net/posts/5358746?q=id:5358746
I would appreciate a feature like this to be added proper, either officially or to re621, as being limited to CSS limits this to a hack like this (and I suck at JS too much to make a userscript or contribute to e621ng).