Skip to content

Commit eaa297a

Browse files
chrarnoldusmarkijbema
authored andcommitted
Fix not being able to open Mermaid diagrams in a tab or save them
1 parent c0dd68e commit eaa297a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

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

0 commit comments

Comments
 (0)