From bfb9acaa78c96c68a2a7c136148e95400d5dfa19 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 18 Jun 2025 00:24:51 +0200 Subject: [PATCH] Use a stable scroll gutter Prevent horizontal page shifts when switching tabs due to the scrollbar changing visibility. --- assets/global.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/global.css b/assets/global.css index 4512628..568b6f4 100644 --- a/assets/global.css +++ b/assets/global.css @@ -1,4 +1,5 @@ :root { + scrollbar-gutter: stable both-edges; --background: #ffffff; --foreground: #171717; } @@ -11,7 +12,7 @@ } body { - padding-inline: 1rem; + padding-inline: 0.3rem; color: var(--foreground); background: var(--background); font-family: Arial, Helvetica, sans-serif;