From c8ff474c2863c2f0d2213b7daa4ca682bf7ff871 Mon Sep 17 00:00:00 2001 From: chziyue Date: Mon, 6 Apr 2026 16:25:06 +0800 Subject: [PATCH] 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) --- ui/src/styles/base.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/styles/base.css b/ui/src/styles/base.css index f551abd2c35..ca61d2de37e 100644 --- a/ui/src/styles/base.css +++ b/ui/src/styles/base.css @@ -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); }