From 21c1d228594f2d676fb91d88a8ef0923b2c519ac Mon Sep 17 00:00:00 2001 From: Mischa Date: Mon, 22 Jun 2026 09:11:52 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20PhotoSwipe=20bg=20doesn't=20cover=20bott?= =?UTF-8?q?om=20=E2=80=94=20add=20!important=20and=20pin=20bg=20to=20viewp?= =?UTF-8?q?ort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/intotheeast/css/style.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/intotheeast/css/style.css b/themes/intotheeast/css/style.css index 7f6ab23..b1a8395 100644 --- a/themes/intotheeast/css/style.css +++ b/themes/intotheeast/css/style.css @@ -457,8 +457,10 @@ body::after { .pswp__bg { background: #000; } -/* iOS Safari: 100vh freezes when address bar hides; dvh tracks the live viewport */ -.pswp { height: 100dvh; } +/* pswp.css loads in after this stylesheet, so !important is needed to win */ +.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 */ .pswp-key-from-right { animation: pswpKeyFromRight 0.35s cubic-bezier(0.4, 0, 0.22, 1) both; }