fix: PhotoSwipe bg doesn't cover bottom — add !important and pin bg to viewport
This commit is contained in:
@@ -457,8 +457,10 @@ body::after {
|
|||||||
|
|
||||||
.pswp__bg { background: #000; }
|
.pswp__bg { background: #000; }
|
||||||
|
|
||||||
/* iOS Safari: 100vh freezes when address bar hides; dvh tracks the live viewport */
|
/* pswp.css loads in <body> after this stylesheet, so !important is needed to win */
|
||||||
.pswp { height: 100dvh; }
|
.pswp { height: 100dvh !important; }
|
||||||
|
/* Pin bg directly to viewport so it can't be cut short by parent height rounding */
|
||||||
|
.pswp__bg { position: fixed !important; inset: 0 !important; }
|
||||||
|
|
||||||
/* Keyboard arrow navigation slide-in animations */
|
/* Keyboard arrow navigation slide-in animations */
|
||||||
.pswp-key-from-right { animation: pswpKeyFromRight 0.35s cubic-bezier(0.4, 0, 0.22, 1) both; }
|
.pswp-key-from-right { animation: pswpKeyFromRight 0.35s cubic-bezier(0.4, 0, 0.22, 1) both; }
|
||||||
|
|||||||
Reference in New Issue
Block a user