Skip to content

Commit e32fa57

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

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
@@ -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)