web/SidebarTab: fix content jumping when navigating between distant tabs

This commit is contained in:
dumbmoron 2024-09-07 20:26:29 +00:00
parent f9e80e6d6f
commit d0bd70e213
No known key found for this signature in database

View file

@ -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) {