From 499cd1949bf30847e3246af14526353e4e9531cd Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Sun, 4 Aug 2024 21:58:34 +0700 Subject: [PATCH] refactor: scroll anchor is now to top instead of center --- src/components/SideMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SideMenu.vue b/src/components/SideMenu.vue index 186b74d5..244ae845 100644 --- a/src/components/SideMenu.vue +++ b/src/components/SideMenu.vue @@ -31,7 +31,7 @@ function handleClick(menu: Menu) { if (element) { element.scrollIntoView({ behavior: 'smooth', - block: 'center', + block: 'start', }); } }