From bc3ebcb5583fd167ff24402f67f8c005ce493411 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 21 Sep 2025 13:41:58 +0200 Subject: [PATCH] revert: restore previous video positioning to fix scrolling issue --- apps/website/assets/css/voyage-layout.css | 27 ++++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/apps/website/assets/css/voyage-layout.css b/apps/website/assets/css/voyage-layout.css index ca5d939..c52b60d 100644 --- a/apps/website/assets/css/voyage-layout.css +++ b/apps/website/assets/css/voyage-layout.css @@ -1674,27 +1674,28 @@ html { /* Responsive */ @media (max-width: 768px) { .hero-voyage { - /* Use relative positioning to contain the absolutely positioned video */ - position: relative; padding: 0; - /* Set height to dynamic viewport height */ + /* iOS-specific height handling */ + height: 100vh; + height: -webkit-fill-available; height: 100dvh; + min-height: 100vh; + min-height: -webkit-fill-available; min-height: 100dvh; - /* CRITICAL: Allow overflow visible so video can extend beyond container */ - overflow: visible !important; + /* Video will extend under notch - no padding-top here */ + padding-bottom: env(safe-area-inset-bottom); + overflow-x: hidden !important; max-width: 100vw !important; } - /* Use negative positioning to extend video into notch area */ + /* Make video container fixed on mobile to fill entire viewport including notch */ .hero-video-container { - position: absolute !important; - /* Negative top to extend into notch area */ - top: calc(-1 * env(safe-area-inset-top, 0px)); - left: 0; - right: 0; + position: fixed !important; + inset: 0; width: 100vw; - /* Height includes the safe area we're extending into */ - height: calc(100dvh + env(safe-area-inset-top, 0px)); + height: 100vh; + height: -webkit-fill-available; + height: 100dvh; z-index: 0; pointer-events: none; }