From 6d0c3c4bcfd0426a8e90f0d5ce06fbc0515c1c32 Mon Sep 17 00:00:00 2001 From: gahusb Date: Wed, 15 Apr 2026 02:25:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20TopNav=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20?= =?UTF-8?q?=EC=98=A4=EB=B2=84=EB=A0=88=EC=9D=B4=20body=20scroll=20lock=20+?= =?UTF-8?q?=20=ED=91=B8=ED=84=B0=20=EC=97=B0=EB=8F=84=202026=20=ED=86=B5?= =?UTF-8?q?=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- app/components/DashboardShell.tsx | 2 +- app/components/TopNav.tsx | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/components/DashboardShell.tsx b/app/components/DashboardShell.tsx index 0ebe865..20cdcf4 100644 --- a/app/components/DashboardShell.tsx +++ b/app/components/DashboardShell.tsx @@ -67,7 +67,7 @@ export default function DashboardShell({ children }: { children: React.ReactNode 개인정보처리방침 환불 정책 -

© 2025 쟁승메이드. All rights reserved.

+

© 2026 쟁승메이드. All rights reserved.

diff --git a/app/components/TopNav.tsx b/app/components/TopNav.tsx index de9a375..7a6cea6 100644 --- a/app/components/TopNav.tsx +++ b/app/components/TopNav.tsx @@ -26,6 +26,14 @@ export default function TopNav() { useEffect(() => { setOpen(false); }, [pathname]); + useEffect(() => { + if (open) { + const prev = document.body.style.overflow; + document.body.style.overflow = 'hidden'; + return () => { document.body.style.overflow = prev; }; + } + }, [open]); + const isActive = (href: string) => href === '/' ? pathname === '/' : pathname.startsWith(href);