Skip to content

Commit 8a8ef53

Browse files
authored
fix misaligned divider in nested steps (#1246)
## Problem The divider between condition step and child steps are misaligned when in 'Published' state. ## Solution Missing condition check to get the width. ## Before & After Screenshots **BEFORE**: <img width="1512" height="806" alt="Screenshot 2025-10-06 at 10 40 37 PM" src="https://github.com/user-attachments/assets/d5f0a420-2e41-479e-ba13-76e629b9e2db" /> **AFTER**: <img width="1508" height="807" alt="Screenshot 2025-10-06 at 10 41 12 PM" src="https://github.com/user-attachments/assets/d6698007-6f55-4860-b537-46d4ee89007f" /> ## Tests - [ ] Divider is aligned across all nested steps in `Published` and `Unpublished` states - [ ] Divider is aligned across all steps in `Published` and `Unpublished` states
1 parent 263ca75 commit 8a8ef53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/frontend/src/components/FlowStepGroup/Content/IfThen/HoverAddStepButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ export function HoverAddStepButton(
8383
onMouseEnter={() => setIsHovered(true)}
8484
onMouseLeave={() => setIsHovered(false)}
8585
w={
86-
(shouldShowDragHandle || canChildStepsReorder) && !isDrawerOpen
86+
(shouldShowDragHandle || canChildStepsReorder) &&
87+
!isDrawerOpen &&
88+
!readOnly
8789
? `calc(100% - ${NESTED_DRAG_HANDLE_WIDTH}px)`
8890
: 'full'
8991
}

0 commit comments

Comments
 (0)