mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
Lock mermaid diagram sizes. (#3514)
This commit is contained in:
parent
5d33d4c3ff
commit
145ce6e7b5
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
}
|
||||
`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue