Skip to content

fix(mermaid): normalize wide diagram SVG sizing and improve pan-zoom fit - #605

Open
farnabaz wants to merge 1 commit into
mainfrom
fix/mermaid-diagram-view-squash
Open

fix(mermaid): normalize wide diagram SVG sizing and improve pan-zoom fit#605
farnabaz wants to merge 1 commit into
mainfrom
fix/mermaid-diagram-view-squash

Conversation

@farnabaz

@farnabaz farnabaz commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Originally created on #480 due to conflict and unsigned commit history I did cherry pick all changes here.

Fixes #479
Closes #479
Related to #479

Keep wide Mermaid diagrams readable by normalizing inline SVG dimensions,
auto-fitting large content in pan-zoom, and covering the behavior with tests.

Co-authored-by: aradhyacp <cparadhya@proton.me>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
streamdown Ready Ready Preview, v0 Sep 2, 2026 1:18pm UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wide mermaid diagrams are too short

1 participant