Skip to content

Commit 84cab09

Browse files
chrarnoldusmarkijbema
authored andcommitted
Fix not being able to open Mermaid diagrams in a tab or save them
1 parent 9dbffb3 commit 84cab09

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/vast-paths-open.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Fix not being able to open Mermaid diagrams in a tab or save them

webview-ui/src/components/common/MermaidBlock.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export default function MermaidBlock({ code: originalCode }: MermaidBlockProps)
266266
<MermaidButton containerRef={containerRef} code={code} isLoading={isLoading} svgToPng={svgToPng}>
267267
<SvgContainer
268268
onClick={handleClick}
269+
ref={containerRef}
269270
$isLoading={isLoading}
270271
dangerouslySetInnerHTML={{ __html: svgContent }}
271272
/>

0 commit comments

Comments
 (0)