feat(docs): add click-to-zoom modal with panzoom for mermaid flowcharts#136
Merged
Conversation
…charts The Core-flow page has 11 wide horizontal mermaid flowcharts that were squished into the content column, making them unreadable. - Set .docusaurus-mermaid-container to overflow-x: auto - Let SVG keep natural width (min-width: 600px) - Add styled scrollbar for desktop - Subtle hover shadow for visual feedback Co-Authored-By: Claude <noreply@anthropic.com>
Replace the basic scrollbar approach with a full interactive viewer: - Click any mermaid diagram to open a fullscreen modal overlay - Pan (drag) and zoom (scroll/+/- buttons) to freely explore - Toolbar with zoom in/out/reset/close buttons - Escape key to close, +/=/- keyboard shortcuts - Dark/light theme support - Smooth overlay animation Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
之前 PR #135 的外置滚动条方案体验不够好,用户需求是「可以放大查看」。改用 Panzoom 交互式放大查看器。
实现方案
通过 Docusaurus theme shadowing 自定义 @theme/Mermaid 组件:
交互体验