Skip to content

fix: Mermaid 原始宽高显示,取消自动缩放 - #75

Merged
shaohaozhi286 merged 1 commit into
masterfrom
codex/fix-mermaid-intrinsic-size
Sep 27, 2026
Merged

shaohaozhi286 merged 1 commit into
masterfrom
codex/fix-mermaid-intrinsic-size

Conversation

@shaohaozhi286

Copy link
Copy Markdown
Collaborator

用户要求对话内 Mermaid 不进行任何宽高拉伸或自动缩放。图像现在同时使用 SVG 原始宽度与高度,取消最大宽高限制;超宽内容保留原尺寸并在图表容器内滚动。

验证:pnpm test、pnpm build、git diff --check 通过。完整生产前端入口的浏览器验证覆盖 1600px / 390px 窗口以及 100% / 125% / 150% DPR:318×441 和 2990.75×65 的图表始终保持原始宽高,超宽图的滚动范围覆盖完整内容。

@shaohaozhi286
shaohaozhi286 merged commit b016975 into master Sep 27, 2026
4 checks passed
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.

2 participants