Skip to content

Build your personal knowledge base with Trilium Notes

fix(layout): scrollbar design in code note

Elian Dorana2cff4298191
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 439e70e666..5d0a6476de 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -1367,6 +1367,10 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
background-color: var(--scrollbar-background-color);
}
+::-webkit-scrollbar-button {
+ display: none;
+}
+
::-webkit-scrollbar-corner {
background-color: inherit;
}
diff --git a/apps/client/src/widgets/containers/scrolling_container.css b/apps/client/src/widgets/containers/scrolling_container.css
index 5bea624180..25ceef124f 100644
--- a/apps/client/src/widgets/containers/scrolling_container.css
+++ b/apps/client/src/widgets/containers/scrolling_container.css
@@ -6,4 +6,5 @@
.note-split.type-code:not(.mime-text-x-sqlite) > .scrolling-container {
background-color: var(--code-background-color);
-}
\ No newline at end of file
+ --scrollbar-background-color: var(--main-background-color);
+}