fix(ui): use direct selector for root scrollbar

- Remove descendant combinator (space) between :root and ::-webkit-scrollbar-thumb
- Previous selector matched only child element scrollbars, not root element scrollbar
- Now correctly applies to document.documentElement scrollbar in light mode
- Drop redundant border-radius (inherits from global rule)
This commit is contained in:
chziyue
2026-04-06 16:25:06 +08:00
committed by Val Alexander
parent ed156ee2de
commit c8ff474c28

View File

@@ -188,12 +188,11 @@
}
/* Scrollbar - visible on light backgrounds */
:root[data-theme-mode="light"] ::-webkit-scrollbar-thumb {
:root[data-theme-mode="light"]::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.15);
border-radius: var(--radius-full);
}
:root[data-theme-mode="light"] ::-webkit-scrollbar-thumb:hover {
:root[data-theme-mode="light"]::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.25);
}