Lock mermaid diagram sizes. (#3514)

This commit is contained in:
Sacha Sayan 2025-05-28 13:45:52 -04:00 committed by GitHub
parent 5d33d4c3ff
commit 145ce6e7b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -306,4 +306,12 @@ const SvgContainer = styled.div<SvgContainerProps>`
cursor: pointer;
display: flex;
justify-content: center;
max-height: 400px;
/* Ensure the SVG scales within the container */
& > svg {
display: block; /* Ensure block layout */
width: 100%;
max-height: 100%; /* Respect container's max-height */
}
`