From 25db76f494485edeebc7cae7ba018363d0b18202 Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Sat, 6 Dec 2025 13:06:23 +0100 Subject: [PATCH] upgrade mermaid to latest version --- frontend/app.js | 30 ++++++++++++++++++++++++++---- frontend/index.html | 4 ++-- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index 4beb7f3..bcecb0f 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -2573,7 +2573,21 @@ function noteApp() { startOnLoad: false, theme: mermaidTheme, securityLevel: 'strict', // Use strict for better security - fontFamily: 'inherit' + fontFamily: 'inherit', + // v11 changed useMaxWidth defaults - restore responsive behavior + flowchart: { useMaxWidth: true }, + sequence: { useMaxWidth: true }, + gantt: { useMaxWidth: true }, + journey: { useMaxWidth: true }, + timeline: { useMaxWidth: true }, + class: { useMaxWidth: true }, + state: { useMaxWidth: true }, + er: { useMaxWidth: true }, + pie: { useMaxWidth: true }, + quadrantChart: { useMaxWidth: true }, + requirement: { useMaxWidth: true }, + mindmap: { useMaxWidth: true }, + gitGraph: { useMaxWidth: true } }); this.lastMermaidTheme = mermaidTheme; } @@ -3659,15 +3673,23 @@ function noteApp() { - + - +