Skip to content

Commit 4c89c68

Browse files
committed
fix(shell): make scrollbar 6px take effect
1 parent c7d2095 commit 4c89c68

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎app/index.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
而 reset 是**文档结构**约定,不是设计 token。 -->
1111
<style>
1212
html, body, #root { margin: 0; height: 100%; }
13-
/* 规格 §1 决策 17:细滚动条 6px(审计 J1-2「6px 细滚动条规格全站未实现」) */
14-
* { scrollbar-width: thin; }
13+
/* 规格 §1 决策 17:细滚动条 6px。**只用 ::-webkit-scrollbar**:Chromium ≥121 里
14+
`scrollbar-width` 一旦非 auto 就使 webkit 伪元素的宽度失效(实测 10px ≠ 6px),
15+
而本应用是 Tauri/WebView2(仅 Chromium)—— 没有 Firefox 面需要它,别加回来。 */
1516
::-webkit-scrollbar { width: 6px; height: 6px; }
1617
::-webkit-scrollbar-thumb { background: #c9c4b8; border-radius: 3px; }
1718
::-webkit-scrollbar-track { background: transparent; }

0 commit comments

Comments
 (0)