Merge pull request #5252 from xyflow/fix/panel-position
Fix/panel position
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/system': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Center panel correctly when bottom-center or top-center position is used
|
||||||
@@ -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%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user