From 69a8e1657ebc1fc7502ec4d9cf9fb7a4774fdce8 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Sat, 27 Dec 2025 23:53:23 +0800 Subject: [PATCH] fix(layout): keep header fixed on mobile scroll --- src/styles/layout.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 0e9d194..09d2647 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -35,6 +35,9 @@ width: 100%; @media (max-width: $breakpoint-mobile) { + position: fixed; + left: 0; + right: 0; padding: $spacing-sm $spacing-md; gap: $spacing-sm; } @@ -242,6 +245,7 @@ height: auto; min-height: calc(100vh - var(--header-height)); overflow: visible; + padding-top: var(--header-height); @supports (min-height: 100dvh) { min-height: calc(100dvh - var(--header-height));