Fix comments dragging nodes

This commit is contained in:
barsdeveloper
2022-12-15 21:00:20 +01:00
parent 4bc87263f1
commit 69d274e9cf
18 changed files with 151 additions and 114 deletions

View File

@@ -1,6 +1,7 @@
@use "style.scss";
ueb-link {
position: absolute;
--ueb-link-color: rgb(var(--ueb-link-color-rgb));
--ueb-from-input-coefficient: calc(2 * var(--ueb-from-input) - 1);
/* when from-y > to-y */
@@ -13,7 +14,7 @@ ueb-link {
* their hover behavior correctly firing.
*/
visibility: hidden;
@extend .ueb-positioned;
z-index: 2;
}
ueb-link>svg {

View File

@@ -241,8 +241,8 @@ ueb-node.ueb-node-style-glass .ueb-node-outputs:first-child {
padding-left: 8px;
}
ueb-node.ueb-node-style-comment {
z-index: -1;
ueb-node:not(.ueb-node-style-comment) {
z-index: 10;
}
ueb-node.ueb-node-style-comment .ueb-node-border {
@@ -282,6 +282,7 @@ ueb-node.ueb-node-style-comment .ueb-node-wrapper {
}
ueb-node.ueb-node-style-comment .ueb-node-top {
position: relative;
margin: 3px;
padding: 3px 10px;
box-shadow: none;
@@ -290,4 +291,5 @@ ueb-node.ueb-node-style-comment .ueb-node-top {
color: white;
font-size: 24px;
text-shadow: 2px 1px 1px #444, 0 0 2px #bbb;
z-index: 1;
}