From c38d895f5f9e431eebf711c9365bcc96d2061ea8 Mon Sep 17 00:00:00 2001 From: megaproxy Date: Sat, 9 May 2026 01:58:45 +0100 Subject: [PATCH] =?UTF-8?q?styles:=20box-sizing=20reset=20+=20body=20overf?= =?UTF-8?q?low:hidden=20=E2=80=94=20kill=20the=202px-border=20overflow=20b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #app has width:100vw and a 1px border with default content-box box-sizing, so its rendered size is 100vw+2px which overflowed body → unwanted scrollbars. --- src/styles.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/styles.css b/src/styles.css index bdf0e4d..5a6f61a 100644 --- a/src/styles.css +++ b/src/styles.css @@ -22,12 +22,15 @@ color: var(--fg); } +*, *::before, *::after { box-sizing: border-box; } + html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: transparent; /* honor Tauri transparent:true */ + overflow: hidden; /* viewport never scrolls; sections handle their own */ user-select: none; -webkit-user-select: none; }