We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090b21a commit 84c7368Copy full SHA for 84c7368
webview-ui/src/components/common/MermaidBlock.tsx
@@ -306,4 +306,12 @@ const SvgContainer = styled.div<SvgContainerProps>`
306
cursor: pointer;
307
display: flex;
308
justify-content: center;
309
+ max-height: 400px;
310
+
311
+ /* Ensure the SVG scales within the container */
312
+ & > svg {
313
+ display: block; /* Ensure block layout */
314
+ width: 100%;
315
+ max-height: 100%; /* Respect container's max-height */
316
+ }
317
`
0 commit comments