Skip to content

Build your personal knowledge base with Trilium Notes

style(next): fix scrollbar appearance in code blocks

Adorian Doran99bdf3323655
diff --git a/src/public/stylesheets/theme-next/notes/text.css b/src/public/stylesheets/theme-next/notes/text.css
index cf8aa4760f..ac712c2516 100644
--- a/src/public/stylesheets/theme-next/notes/text.css
+++ b/src/public/stylesheets/theme-next/notes/text.css
@@ -42,14 +42,9 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
overflow: auto;
}
-.ck-content pre code::-webkit-scrollbar {
- height: 6px;
-}
-
-.ck-content pre code::-webkit-scrollbar-thumb {
- height: 4px;
- border: none !important;
- background: gray !important;
+.ck-content pre code {
+ --scrollbar-thumb-color: gray;
+ --scrollbar-thumb-color-hover: gray;
}
.ck-content pre code::-webkit-scrollbar-track,