Merge pull request #5153 from nick-lawrence-ctm/main

When horizontal, remove the border from all control buttons
This commit is contained in:
Moritz Klack
2025-04-14 13:48:57 +02:00
committed by GitHub
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'@xyflow/system': patch
---
Add separators to horizontal control buttons

View File

@@ -158,4 +158,17 @@
&-button:last-child {
border-bottom: none;
}
&.horizontal &-button {
border-bottom: none;
border-right: 1px solid
var(
--xy-controls-button-border-color-props,
var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
);
}
&.horizontal &-button:last-child {
border-right: none;
}
}