From 21b648a005bcaa928240116fc2f87b7d57836fdc Mon Sep 17 00:00:00 2001 From: spatiumstas <79056064+spatiumstas@users.noreply.github.com> Date: Fri, 25 Sep 2026 02:25:56 +0300 Subject: [PATCH] fix(site): prevent scrollbar layout shifts (#2406) --- internal/site/src/index.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/internal/site/src/index.css b/internal/site/src/index.css index d3f34f09..974d2b6f 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 +}