Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

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

spatiumstas21b648a005bc
diff --git a/internal/site/src/index.css b/internal/site/src/index.css
index d3f34f099..974d2b6fd 100644
--- a/internal/site/src/index.css
+++ b/internal/site/src/index.css
@@ -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;
-}
\ No newline at end of file
+}