UX: Improve positioning of controls in lightboxes (#13108)

This commit fixes an issue where controls scroll in lightboxes with large images (after zooming in)

Before:

05024730b3.mp4

Notice how controls like the close button, the next and previous button, and the image metadata also scroll? This is an undesired behavior.

After:

8047bab735.mp4

This is the desired behavior; only the image should scroll.

The changes in this PR apply to both desktop and mobile.
This commit is contained in:
Joe 2021-05-21 09:18:22 +08:00 committed by GitHub
parent bd8c2b4615
commit 6421fabb02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -623,6 +623,9 @@ button {
overflow-y: auto !important;
overflow-x: auto !important;
}
.mfp-figure {
overflow: auto;
}
.mfp-img {
max-width: none;
}