Skip to content

Build your personal knowledge base with Trilium Notes

style(split-editor): separate the panes as the sidebar is from the note

Elian Doranf21f0e6138d6
diff --git a/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css b/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css
index e08a8f0ea8..9fa643c1cd 100644
--- a/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css
+++ b/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css
@@ -1,4 +1,6 @@
.note-detail-split {
+ --gutter-color: var(--left-pane-background-color);
+
display: flex;
height: 100%;
}
@@ -32,7 +34,7 @@
}
body.desktop .note-detail-split .note-detail-code-editor {
- border-radius: 6px;
+ border-radius: var(--center-pane-border-radius, 6px);
margin-top: 1px;
}
@@ -98,10 +100,6 @@ body.desktop .note-detail-split .note-detail-code-editor {
/* Horizontal layout */
.note-detail-split.split-horizontal:not(.split-read-only) {
- &> .note-detail-split-preview-col {
- border-inline-start: 1px solid var(--main-border-color);
- }
-
&> .note-detail-split-editor-col,
&> .note-detail-split-preview-col {
height: 100%;
@@ -124,10 +122,6 @@ body.desktop .note-detail-split .note-detail-code-editor {
height: 50%;
}
- &> .note-detail-split-editor-col {
- border-top: 1px solid var(--main-border-color);
- }
-
&> .note-detail-split-preview-col {
order: -1;
}