-
Notifications
You must be signed in to change notification settings - Fork 310
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
Images become stretchy vertically on iPhone Safari #207
Comments
it seems to be the same on Chrome. Using v8.0.0 |
I am experiencing the same issue, does the bug have anything to do with iOS/iPadOS 15? I remember not having this issue before updating. Tested and no issues on macOS 11.4 and Android 11. Wondering if this is caused by the WebKit implementation? |
No, it has no link with IOS15. The main reason is that, the parent div of the images have "display:flex;" but there is no "align-items" by default align-items is stretch |
I applied the following style and the issue seems to be gone. .react-photo-gallery--gallery > div {
align-items: stretch;
& > img {
min-height: 100%;
}
} Don't know why this works, but it does... |
I will try that |
Missing width and height props for photos also prevent them from displaying stretchily. |
Images become stretchy vertically on iPhone Safari
The text was updated successfully, but these errors were encountered: