Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/scrollbars: add a remark

Adorian Doran66cebf4ebfc8
diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css
index ce6663380d..30e8eec228 100644
--- a/src/public/stylesheets/theme-next/forms.css
+++ b/src/public/stylesheets/theme-next/forms.css
@@ -714,7 +714,9 @@ input[type="range"] {
--s-thumb-color: var(--scrollbar-thumb-hover-color);
}
-/* Scrollbar's increment/decrement buttons (repurposed as a scrollbar start/end gap) */
+/* Scrollbar's increment/decrement buttons (repurposed as a scrollbar start/end gap).
+ * This gap is useful also to avoid breaking the rounded corners of a container when a
+ * custom scrollbar background color is used. */
::-webkit-scrollbar-button:vertical {
height: var(--scrollbar-start-end-gap);