Exclude empty diagrams from zoom cursor and selection outline

Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-28 17:46:02 +00:00
parent de6e1cc943
commit 9706ba2e01
+2 -2
View File
@@ -1774,7 +1774,7 @@ mark {
&.ProseMirror-selectednode {
outline: none;
& + .mermaid-diagram-wrapper {
& + .mermaid-diagram-wrapper:not(.empty) {
cursor: zoom-in;
outline: 2px solid ${props.theme.selected};
}
@@ -1786,7 +1786,7 @@ mark {
height: 0;
overflow: hidden;
& + .mermaid-diagram-wrapper {
& + .mermaid-diagram-wrapper:not(.empty) {
cursor: zoom-in;
}
}