Skip to content

Build your personal knowledge base with Trilium Notes

fix scrollbar styling in both ff and chrome (white corner in dark themes when both scrollbars are present)

zadam1ac0c4f874a4
diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css
index 30beb328dd..6d2a330135 100644
--- a/src/public/stylesheets/desktop.css
+++ b/src/public/stylesheets/desktop.css
@@ -134,6 +134,11 @@ li.dropdown-submenu:hover > ul.dropdown-menu {
border-style: solid;
}
+body {
+ /* FF basic styling */
+ scrollbar-color: var(--active-item-background-color) var(--main-background-color);
+}
+
::-webkit-scrollbar {
width: 12px;
}
@@ -143,6 +148,10 @@ li.dropdown-submenu:hover > ul.dropdown-menu {
border: 1px solid var(--main-border-color);
}
+::-webkit-scrollbar-corner {
+ background-color: inherit;
+}
+
#note-info-table td, #note-info-table th {
padding: 15px;
}