Skip to content
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

Open
sulaimanwebdev opened this issue Oct 19, 2021 · 6 comments
Open

Images become stretchy vertically on iPhone Safari #207

sulaimanwebdev opened this issue Oct 19, 2021 · 6 comments

Comments

@sulaimanwebdev
Copy link

sulaimanwebdev commented Oct 19, 2021

Images become stretchy vertically on iPhone Safari

@doowhsalf
Copy link

it seems to be the same on Chrome. Using v8.0.0

@crisanmm
Copy link

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?

@sulaimanwebdev
Copy link
Author

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

@crisanmm
Copy link

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...

@sulaimanwebdev
Copy link
Author

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

@sergomet
Copy link

Missing width and height props for photos also prevent them from displaying stretchily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants