FIX: make document overflow hidden on both axis when lightbox is open (#22775)

Fixes issue with scrolling background when lightbox is opened on mobile.

Since we rely on swiping for navigating lightbox galleries on mobile, we want to disable document scrolling.
This commit is contained in:
David Battersby 2023-07-25 15:27:32 +08:00 committed by GitHub
parent 72bc3ae9ce
commit d11f02c03a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/* Main document */
html.has-lightbox {
overflow-y: hidden;
overflow: hidden;
&::-webkit-scrollbar {
display: none;