Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/text editor/code embed: tweak border for Mermaid blocks
Adorian Dorana6c57001b7dd
diff --git a/apps/client/src/widgets/type_widgets/mermaid/MermaidDiagram.css b/apps/client/src/widgets/type_widgets/mermaid/MermaidDiagram.cssindex 5c4084a407..cccc72473b 100644--- a/apps/client/src/widgets/type_widgets/mermaid/MermaidDiagram.css+++ b/apps/client/src/widgets/type_widgets/mermaid/MermaidDiagram.css@@ -12,9 +12,20 @@}}+.include-note-content.type-mermaidDiagram:has(.note-detail-split:not(.split-read-only)) {+ padding: var(--_include-note-content-top-inset) var(--_include-note-content-inset)+ var(--_include-note-content-bottom-inset);+}+.include-note-content:not(:fullscreen) .mermaid-diagram {overflow: hidden;border-radius: var(--_include-note-content-top-radius) var(--_include-note-content-top-radius)var(--_include-note-content-bottom-radius)var(--_include-note-content-bottom-radius);++ &:has(> .note-detail-split:not(.split-read-only)) {+ border-radius: var(--_include-note-framed-top-radius) var(--_include-note-framed-top-radius)+ var(--_include-note-framed-bottom-radius)+ var(--_include-note-framed-bottom-radius);+ }}