feat(panel): add center-left and center-right positions #5082

This commit is contained in:
moklick
2025-03-17 14:50:32 +01:00
parent 74e3f0c5a1
commit 8ff900c0cf
2 changed files with 23 additions and 4 deletions
+14 -3
View File
@@ -278,6 +278,14 @@ svg.xy-flow__connectionline {
bottom: 0;
}
&.top,
&.bottom {
&.center {
left: 50%;
transform: translateX(-50%);
}
}
&.left {
left: 0;
}
@@ -286,9 +294,12 @@ svg.xy-flow__connectionline {
right: 0;
}
&.center {
left: 50%;
transform: translateX(-50%);
&.left,
&.right {
&.center {
top: 50%;
transform: translateY(-50%);
}
}
}