Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mermaid图表过大问题,超过屏幕范围,没有滚动条 #463

Closed
1 of 3 tasks
AnthonyZhai opened this issue May 10, 2024 · 3 comments
Closed
1 of 3 tasks
Labels
bug Something isn't working fixed

Comments

@AnthonyZhai
Copy link

检查清单

  • 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • 尝试过在本地测试运行官方 demo 源码。
  • 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

问题描述

因为使用mermaid画的树形图太大,导致图超出屏幕范围,且没有滚动条可以滑动。所以,试图尝试将mermaid图放入box 盒子容器中。

代码

_posts/xxx.md

{% box %}
```mermaid
graph TB
A((5))
B((6))
C((4))
D((10))
E((5))
F((7))
G((12))
H((3))
I((5))
J((8))
K((9))
L((11))
M((20))
N((4))
O((6))
P((10))
Q((6))
R((8))
S((14))
T((8))
U((10))
V((18))
W((10))
X((12))
Y((22))
Z((17))
AA((19))
AB((36))
A---B
A---C
A---D
B---E
B---F
B---G
C---H
C---I
C---J
D---K
D---L
D---M
E---N
E---O
E---P
F---Q
F---R
F---S
K---T
K---U
K---V
L---W
L---X
L---Y
V---Z
V---AA
V---AB
\```         #为了显示正确加入\,实际没有
{% endbox %}

结果

使用上述代码后,导致mermaid不能正常显示。
image

求助

如何让超过范围的mermaid图可以缩放,或者加入滚动条,或者限制在一定范围内。

@xaoxuu
Copy link
Owner

xaoxuu commented May 10, 2024

已修复,现在可以滚动了。

放到 box 里面不兼容这个问题不好改。

@xaoxuu xaoxuu added bug Something isn't working fixed labels May 10, 2024
Copy link

👋 Hello,
This bug has been fixed, please update your stellar.

👋 您好,
此 BUG 已经被修复,请更新您的 Stellar 版本。

@xaoxuu
Copy link
Owner

xaoxuu commented May 10, 2024

需要更新到 main 分支 376a3d8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants