From 17401533e327ec11d104ef43a89a871ac2dccc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Gr=C3=B6hling?= Date: Mon, 26 Aug 2024 02:00:27 +0200 Subject: [PATCH] fix: layout shift with opened dialog --- src/styles/elements.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/styles/elements.css b/src/styles/elements.css index e47da1b..367bc3b 100644 --- a/src/styles/elements.css +++ b/src/styles/elements.css @@ -59,6 +59,7 @@ textarea { border: var(--border-size-1) solid var(--surface-1); } -body:has(dialog[open]) { +html:has(dialog[open]) { overflow: hidden; + scrollbar-gutter: stable }