Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Keep Chromium glass scrollbar track margins

Vincenzo Fabiano51cae5d5a287
diff --git a/src/styles.css b/src/styles.css
index bf465b253b..7f9584e723 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -2291,10 +2291,15 @@ body {
}
/* Firefox does not inherit scrollbar-color from :root; every overflow pane
- (dialogs, menus, settings, chat) gets the same thumb as WebKit above. */
-:is(.overflow-y-auto, .overflow-auto, .overflow-x-auto, .overflow-y-scroll, .overflow-x-scroll, .overflow-scroll) {
- scrollbar-width: thin;
- scrollbar-color: var(--color-scrollbar) transparent;
+ (dialogs, menus, settings, chat) gets the same thumb as WebKit above.
+ Firefox only: in Chromium, setting scrollbar-color on an element turns off
+ its ::-webkit-scrollbar rules there, which drops the glass track margins
+ (.glass-scroller) that keep the thumb clear of the glass bars. */
+@supports not selector(::-webkit-scrollbar) {
+ :is(.overflow-y-auto, .overflow-auto, .overflow-x-auto, .overflow-y-scroll, .overflow-x-scroll, .overflow-scroll) {
+ scrollbar-width: thin;
+ scrollbar-color: var(--color-scrollbar) transparent;
+ }
}
[class*="scrollbar-width:none"],
[class*="scrollbar]:hidden"] {