From 02a611e49b9477c6987439bcd5bf88f337010e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Fri, 22 May 2026 20:03:09 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E9=9A=90=E8=97=8F=E6=89=80=E6=9C=89?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E7=9A=84=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在全局 CSS 中为 html 添加 scrollbar-width: none(Firefox) - 添加 ::-webkit-scrollbar { display: none }(Chrome/Safari/Opera) --- src/index.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.css b/src/index.css index e7e4950..a92c1bc 100644 --- a/src/index.css +++ b/src/index.css @@ -72,6 +72,9 @@ * { border-color: hsl(var(--border)); } + html { + scrollbar-width: none; + } body { background-color: hsl(var(--background)); color: hsl(var(--foreground)); @@ -82,3 +85,8 @@ color: hsl(var(--foreground)); } } + +/* Hide scrollbar for Chrome, Safari and Opera */ +::-webkit-scrollbar { + display: none; +}