修改样式

This commit is contained in:
史悦
2025-10-27 16:20:46 +08:00
parent 86b83dd39a
commit 6d453b2519
2 changed files with 2 additions and 2 deletions

View File

@@ -450,7 +450,7 @@ iconify-icon {
.flowchart { #mermaidSvg {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;

View File

@@ -1220,7 +1220,7 @@
if (!code.trim()) { if (!code.trim()) {
throw new Error('缺少 Mermaid 代码,无法渲染'); throw new Error('缺少 Mermaid 代码,无法渲染');
} }
const { svg } = await window.mermaid.render(renderId, code); const { svg } = await window.mermaid.render("mermaidSvg", code);
const updatedArtifact = { const updatedArtifact = {
...artifact, ...artifact,
svgContent: svg svgContent: svg