diff --git a/src/public/app/widgets/mermaid.js b/src/public/app/widgets/mermaid.js index 9fc2928b0..6411ebbc7 100644 --- a/src/public/app/widgets/mermaid.js +++ b/src/public/app/widgets/mermaid.js @@ -19,6 +19,10 @@ const TPL = `
height: 100%; text-align: center; } + + .mermaid-render svg { + width: 95%; /* https://github.com/zadam/trilium/issues/4340 */ + }