From e3c8dc838d516036489b111083601fe754f3cd88 Mon Sep 17 00:00:00 2001 From: codytseng Date: Tue, 20 May 2025 15:20:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NoteList/index.tsx | 1 + src/layouts/SecondaryPageLayout/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/NoteList/index.tsx b/src/components/NoteList/index.tsx index b184723..293bc7e 100644 --- a/src/components/NoteList/index.tsx +++ b/src/components/NoteList/index.tsx @@ -369,6 +369,7 @@ export default function NoteList({ )} +
) } diff --git a/src/layouts/SecondaryPageLayout/index.tsx b/src/layouts/SecondaryPageLayout/index.tsx index b279765..e3a1cad 100644 --- a/src/layouts/SecondaryPageLayout/index.tsx +++ b/src/layouts/SecondaryPageLayout/index.tsx @@ -46,7 +46,7 @@ const SecondaryPageLayout = forwardRef( useEffect(() => { if (isSmallScreen) { - window.scrollTo({ top: 0 }) + setTimeout(() => window.scrollTo({ top: 0 }), 0) return } }, [])