# 图表的缩放问题

**URL:** <https://meta.discourse.org/t/scaling-issue-for-charts/282412>\
**Category:** UX\
**Tags:** mermaid\
**Created:** [2023年八月16日 12:02 UTC](https://meta.discourse.org/t/scaling-issue-for-charts/282412 "2023-08-16T12:02:07Z")\
**Posts on this page:** 1\
**Showing post:** 36

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2025年二月11日 01:48 UTC](https://meta.discourse.org/t/scaling-issue-for-charts/282412/36 "2025-02-11T01:48:16Z")

</div>

更新，@David 正在处理一个修复程序，看起来很棒，我们只需要清理一些 API，很快就会发布相关信息。

> <https://github.com/discourse/discourse-mermaid-theme-component/pull/47>
>
> The variable-height strategy used by this theme component is complex, and is not… providing a good user experience. This commit removes it, and instead sets all mermaid diagrams to have a fixed aspect-ratio of \`16:9\` when rendered in posts. For tall diagrams, the content will be scrollable. A fullscreen button in the top right allows popping the diagram into a modal.

 ![图片显示一个带有四个标签为 A、B、C 和 D 的框的垂直排列图，由向下的箭头连接，以及一个部分可见的区域，上面有一个橙色的铅笔和数字 18d。（由 AI 题注）](https://global.discourse-cdn.com/meta/original/4X/0/f/9/0f922f579265f3c6288332679a5e8744007eb6d6.png)

---

_[View the full topic](https://meta.discourse.org/t/scaling-issue-for-charts/282412)._
