From 69ea86f3cdadee5564bc60f0dfee7108a37e2d37 Mon Sep 17 00:00:00 2001 From: hfcRed <101019309+hfcRed@users.noreply.github.com> Date: Fri, 31 Jul 2026 08:52:54 +0200 Subject: [PATCH] Fix scrollbar styles (#3275) --- app/styles/utils.css | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/app/styles/utils.css b/app/styles/utils.css index 13598b6bd..ea6e9328a 100644 --- a/app/styles/utils.css +++ b/app/styles/utils.css @@ -397,27 +397,31 @@ .scrollbar, textarea { - @supports not selector(::-webkit-scrollbar) { + /* Firefox, Chrome 121+, Safari 18.2+ */ + @supports (scrollbar-color: auto) { scrollbar-width: thin; scrollbar-color: var(--color-bg-higher) transparent; } - &::-webkit-scrollbar, - &::-webkit-scrollbar-track { - background-color: transparent; - height: 14px; - width: 14px; - } + /* Legacy */ + @supports not (scrollbar-color: auto) { + &::-webkit-scrollbar, + &::-webkit-scrollbar-track { + background-color: transparent; + height: 14px; + width: 14px; + } - &::-webkit-scrollbar-thumb { - background-color: var(--color-base-4); - border-radius: var(--radius-full); - border: 4px solid transparent; - background-clip: content-box; - } + &::-webkit-scrollbar-thumb { + background-color: var(--color-base-4); + border-radius: var(--radius-full); + border: 4px solid transparent; + background-clip: content-box; + } - &::-webkit-scrollbar-corner { - background-color: transparent; + &::-webkit-scrollbar-corner { + background-color: transparent; + } } }