Merge pull request #5252 from xyflow/fix/panel-position

Fix/panel position
This commit is contained in:
Moritz Klack
2025-05-12 12:05:15 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@xyflow/system': patch
---
Center panel correctly when bottom-center or top-center position is used
+2 -2
View File
@@ -282,7 +282,7 @@ svg.xy-flow__connectionline {
&.bottom { &.bottom {
&.center { &.center {
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-15px) translateX(-50%);
} }
} }
@@ -298,7 +298,7 @@ svg.xy-flow__connectionline {
&.right { &.right {
&.center { &.center {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-15px) translateY(-50%);
} }
} }
} }