From 29425d25f9d2d579d125de3b488c5cc3eae8d0b9 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Sat, 21 Feb 2026 15:08:40 +0300 Subject: [PATCH] UI: stabilize scrollbar gutter to reduce layout shifts --- style.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/style.css b/style.css index 1fc2a34..517a152 100644 --- a/style.css +++ b/style.css @@ -15,6 +15,16 @@ box-sizing: border-box; } +html { + scrollbar-gutter: stable; +} + +@supports not (scrollbar-gutter: stable) { + html { + overflow-y: scroll; + } +} + html, body { margin: 0; padding: 0;