Skip to content

feat: Improve Mermaid diagram viewing experience#264

Open
flex-yj-kim wants to merge 1 commit intobacknotprop:mainfrom
flex-yj-kim:feature/mermaid-safari-viewport
Open

feat: Improve Mermaid diagram viewing experience#264
flex-yj-kim wants to merge 1 commit intobacknotprop:mainfrom
flex-yj-kim:feature/mermaid-safari-viewport

Conversation

@flex-yj-kim
Copy link
Contributor

Summary

This PR improves the end-to-end Mermaid diagram viewing experience, especially for large architecture diagrams that were difficult to inspect in the default plan width.

What changed

  • Introduced a stronger Mermaid viewing flow centered around:
    • expanded fullscreen diagram mode
    • practical zoom controls (zoom in/out, fit-to-view)
    • quick source/diagram toggling
  • Updated fit behavior to re-center and fit diagrams to the current viewport/container, rather than only resetting zoom.
  • Improved wheel zoom behavior in expanded view so navigation feels consistent during review.
  • Rendered the expanded Mermaid overlay at the document level to avoid layout-context clipping.
  • Improved control clarity and readability (icon tuning, control grouping, zoom badge).
  • Increased viewer widths in both plan view and plan-diff view to better support wide diagrams.
  • Ensured the new fullscreen Mermaid viewing flow works consistently in Safari by stabilizing overlay and viewport behavior.

Screenshots

image image

@flex-yj-kim flex-yj-kim force-pushed the feature/mermaid-safari-viewport branch from ec444c9 to 773de48 Compare March 10, 2026 08:18
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.

1 participant