-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large images overflow viewport when height > 1024px #44
Comments
hi @jsit, thanks for raising this issue. We've spent some time addressing the gallery feature and implemented some updates that relate to this task and will be rolled out in v0.3.1 soon. |
Thanks again, this is now available in the latest release. |
Sorry to thread resurrect, but after updating to the latest release, any very tall portrait images now scroll miles down the screen, making it tricky to interact with them. Can we have the max-height of 85vh back? :) I tried reinstating it in the CSS, but it lead to some crazy jank with the fade transition where the image would stretch then ping back into size. (Or with some more tweaking, you'd get a white background area that would be visible behind the image, which would then ping back to the right size) FWIW, Firefox, Mac OSX. |
I have the same issue going on in Chrome 79 as @robzor |
Having the same issue in Firefox. |
Large images overflow the viewport when the viewport height is greater than 1024px. At smaller sizes the image more appropriately is maxed at a height of 85vh.
I see no reason why the img element shouldn't have a max-height (and max-width for that matter) of 85vh/vw at all viewport sizes.
The text was updated successfully, but these errors were encountered: