Skip to content

Build your personal knowledge base with Trilium Notes

style/scrolling container: improve alignment when content centering is turned on, refactor

Adorian Doran110e9200b952
diff --git a/apps/client/src/widgets/containers/scrolling_container.css b/apps/client/src/widgets/containers/scrolling_container.css
index a4be33cf29..0e590801c4 100644
--- a/apps/client/src/widgets/containers/scrolling_container.css
+++ b/apps/client/src/widgets/containers/scrolling_container.css
@@ -1,12 +1,17 @@
.scrolling-container {
+ --content-margin-inline: 24px;
+
overflow: auto;
scroll-behavior: smooth;
position: relative;
- > .inline-title,
> .note-detail > .note-detail-editable-text > .note-detail-editable-text-editor,
> .note-list-widget:not(.full-height) .note-list-wrapper {
- margin-inline: 24px;
+ margin-inline: var(--content-margin-inline);
+ }
+
+ > .inline-title {
+ padding-inline: var(--content-margin-inline);
}
> .note-detail > .note-detail-editable-text > .note-detail-editable-text-editor {