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
chore(llm): make images and Mermaid fit
Elian Doran6289643e806a
diff --git a/apps/client/src/widgets/type_widgets/code/Markdown.css b/apps/client/src/widgets/type_widgets/code/Markdown.cssindex 46faa0cd7d..224fb0d62f 100644--- a/apps/client/src/widgets/type_widgets/code/Markdown.css+++ b/apps/client/src/widgets/type_widgets/code/Markdown.css@@ -13,13 +13,6 @@overflow: auto;padding: 0.5em 1em;user-select: text;-- .mermaid-diagram,- .mermaid-diagram svg,- img {- max-width: 100%;- height: auto;- }}.markdown-preview [data-source-line] {diff --git a/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css b/apps/client/src/widgets/type_widgets/text/ReadOnlyText.cssindex 1d5a6ac719..e60260e7be 100644--- a/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css+++ b/apps/client/src/widgets/type_widgets/text/ReadOnlyText.css@@ -1,11 +1,18 @@-/* h1 should not be used at all since semantically that's a note title */.note-detail-readonly-text-content {+ /* h1 should not be used at all since semantically that's a note title */h1 { font-size: 1.8em; }h2 { font-size: 1.6em; }h3 { font-size: 1.4em; }h4 { font-size: 1.2em; }h5 { font-size: 1.1em; }h6 { font-size: 1.0em; }++ .mermaid-diagram,+ .mermaid-diagram svg,+ img {+ max-width: 100%;+ height: auto;+ }}body.heading-style-markdown .note-detail-readonly-text-content {