fix(site): prevent scrollbar layout shifts (#2406)

This commit is contained in:
spatiumstas
2026-09-25 02:25:56 +03:00
committed by GitHub
parent 151423ac63
commit 21b648a005

View File

@@ -141,6 +141,17 @@
overflow-anchor: none;
}
html {
scrollbar-gutter: stable;
}
@supports (scrollbar-gutter: stable) {
/* Radix scroll lock adds this margin even though the viewport keeps its gutter. */
html body[data-scroll-locked] {
margin-right: 0 !important;
}
}
body {
@apply bg-background text-foreground;
font-variant-ligatures: no-contextual;
@@ -191,4 +202,4 @@
.recharts-yAxis {
@apply tabular-nums;
}
}