Skip to content

Commit 6581708

Browse files
committed
fix(styles): add z-index to elements and remove from lines
z-index -1 cause foreignobject render error on macos
1 parent 3e5667a commit 6581708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
me-root {
101101
position: relative;
102102
margin: 45px 0;
103+
z-index: 10;
103104
me-tpc {
104105
font-size: 25px;
105106
color: var(--root-color);
@@ -114,6 +115,7 @@
114115
cursor: pointer;
115116
padding: 6px var(--node-gap-x);
116117
margin-top: var(--node-gap-y);
118+
z-index: 10;
117119
me-tpc {
118120
position: relative;
119121
border-radius: 3px;
@@ -213,7 +215,6 @@
213215
.lines,
214216
.subLines {
215217
pointer-events: none;
216-
z-index: -1;
217218
}
218219

219220
.topiclinks,

0 commit comments

Comments
 (0)