From d0bd70e21386e3f13ddb841abfe53917de95daaa Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 7 Sep 2024 20:26:29 +0000 Subject: [PATCH] web/SidebarTab: fix content jumping when navigating between distant tabs --- web/src/components/sidebar/SidebarTab.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/sidebar/SidebarTab.svelte b/web/src/components/sidebar/SidebarTab.svelte index 1e82f518..267d55f1 100644 --- a/web/src/components/sidebar/SidebarTab.svelte +++ b/web/src/components/sidebar/SidebarTab.svelte @@ -20,6 +20,7 @@ if (e) { e.scrollIntoView({ inline: firstTabPage.includes(tabName) ? "end" : "start", + block: "nearest", behavior: "smooth", }); } @@ -70,6 +71,7 @@ text-decoration: none; text-decoration-line: none; position: relative; + scroll-behavior: smooth; } .sidebar-tab :global(svg) {