Repository navigation
fix: Mermaid 原始宽高显示,取消自动缩放 - #75
Merged
Merged
Conversation
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.
用户要求对话内 Mermaid 不进行任何宽高拉伸或自动缩放。图像现在同时使用 SVG 原始宽度与高度,取消最大宽高限制;超宽内容保留原尺寸并在图表容器内滚动。
验证:
pnpm test、pnpm build、git diff --check通过。完整生产前端入口的浏览器验证覆盖 1600px / 390px 窗口以及 100% / 125% / 150% DPR:318×441 和 2990.75×65 的图表始终保持原始宽高,超宽图的滚动范围覆盖完整内容。