mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-12 22:47:30 +08:00
Fix comments dragging nodes
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user