Skip to content

Build your personal knowledge base with Trilium Notes

client: Fix custom scroll bar on Chrome/Electron (closes #350)

Elian Doran2de2c7fc9d8a
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index e2b23988ab..d64061270f 100644
--- a/src/public/stylesheets/style.css
+++ b/src/public/stylesheets/style.css
@@ -837,18 +837,24 @@ body {
scrollbar-color: var(--scrollbar-background-color) var(--main-background-color);
}
-::-webkit-scrollbar {
- width: 12px;
-}
-
-::-webkit-scrollbar-thumb {
- border-radius: 5px;
- border: 1px solid var(--scrollbar-border-color);
- background-color: var(--scrollbar-background-color);
-}
+@supports selector(::-webkit-scrollbar) {
+ body {
+ scrollbar-color: unset;
+ }
-::-webkit-scrollbar-corner {
- background-color: inherit;
+ ::-webkit-scrollbar {
+ width: 12px;
+ }
+
+ ::-webkit-scrollbar-thumb {
+ border-radius: 5px;
+ border: 1px solid var(--scrollbar-border-color);
+ background-color: var(--scrollbar-background-color);
+ }
+
+ ::-webkit-scrollbar-corner {
+ background-color: inherit;
+ }
}
[data-toggle="tooltip"]:not(.button-widget) span {