From b82db24400b568b771e8b4c4d2e9ba4a63d2dfce Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 16 Jan 2026 05:43:34 +0300 Subject: [PATCH] Update Layout.tsx --- src/components/layout/Layout.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 046a4ea..df8a1eb 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -149,9 +149,11 @@ export default function Layout({ children }: LayoutProps) { } }, []) - // Lock body scroll when mobile menu is open + // Lock body scroll and scroll to top when mobile menu is open useEffect(() => { if (mobileMenuOpen) { + // Scroll to top so header is visible + window.scrollTo({ top: 0, behavior: 'instant' }) document.body.style.overflow = 'hidden' } else { document.body.style.overflow = ''