修改样式
This commit is contained in:
@@ -450,7 +450,7 @@ iconify-icon {
|
||||
|
||||
|
||||
|
||||
.flowchart {
|
||||
#mermaidSvg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user