Skip to content

Build your personal knowledge base with Trilium Notes

chore(mermaid): rounded corners for editor only on desktop

Elian Doran2c6bdc79af9c
diff --git a/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css b/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css
index 120b91a620..2c9a6a602e 100644
--- a/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css
+++ b/apps/client/src/widgets/type_widgets/helpers/SplitEditor.css
@@ -23,13 +23,13 @@
contain: size !important;
}
-.note-detail-split .note-detail-code-editor {
+.note-detail-split .note-detail-code-editor .cm-editor {
+ margin: 0 !important;
+}
+
+body.desktop .note-detail-split .note-detail-code-editor {
border-radius: 6px;
margin-top: 1px;
-
- .cm-editor {
- margin: 0 !important;
- }
}
.note-detail-split .note-detail-error-container {