web/SidebarTab: fix content jumping when navigating between distant tabs
This commit is contained in:
parent
f9e80e6d6f
commit
d0bd70e213
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
if (e) {
|
if (e) {
|
||||||
e.scrollIntoView({
|
e.scrollIntoView({
|
||||||
inline: firstTabPage.includes(tabName) ? "end" : "start",
|
inline: firstTabPage.includes(tabName) ? "end" : "start",
|
||||||
|
block: "nearest",
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -70,6 +71,7 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
scroll-behavior: smooth;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab :global(svg) {
|
.sidebar-tab :global(svg) {
|
||||||
|
|
Loading…
Reference in a new issue