From 6d453b2519fa0ca6a21d5ad451dc0e9e43e0ad05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E6=82=A6?= Date: Mon, 27 Oct 2025 16:20:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 2 +- js/core/app-shell.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index 7b6911b..1c7192a 100644 --- a/css/style.css +++ b/css/style.css @@ -450,7 +450,7 @@ iconify-icon { -.flowchart { +#mermaidSvg { width: 100%; height: 100%; object-fit: contain; diff --git a/js/core/app-shell.js b/js/core/app-shell.js index 90f6742..6124811 100644 --- a/js/core/app-shell.js +++ b/js/core/app-shell.js @@ -1220,7 +1220,7 @@ if (!code.trim()) { throw new Error('缺少 Mermaid 代码,无法渲染'); } - const { svg } = await window.mermaid.render(renderId, code); + const { svg } = await window.mermaid.render("mermaidSvg", code); const updatedArtifact = { ...artifact, svgContent: svg