fix(mermaid): 放大视图工具栏让出窗口控件带(#805)
工具栏原本 top:16px、按钮 36px,在 42px 的原生窗口按钮带下只剩 10px 可点。 改为内联 top:16px+控件带高度,CSS 的 16px 保留为无 JS 时的降级;加 data-mermaid-toolbar 稳定选择器供 e2e 测量。 挂载 lane 注入可控的假 WCO(初始 0,不影响本 lane 其它断言),把带子调到 36px 后实测工具栏 top=52,调回 0 再实测回到 16。
This commit is contained in:
1 parent
a95c65c09c
commit
c3e9be88d8
3 files changed
+54
-1
No files matched your search
@@ -2057,6 +2057,9 @@ body[data-dsh-sidebar-dragging] .bottomPanel {
|
||||
|
||||
.mermaidModalToolbar {
|
||||
position: absolute;
|
||||
/* Fallback only: mermaid.tsx sets an inline `top` that also clears the
|
||||
shell's native window-control band, which swallows pointer events (#805).
|
||||
Kept here so the toolbar still lands somewhere sane if that never runs. */
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user