Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const WorkflowEdgeComponent = ({
position: 'absolute',
transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,
pointerEvents: 'all',
zIndex: 100,
zIndex: 1011,
}}
onClick={(e) => {
e.preventDefault()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3807,9 +3807,17 @@ const WorkflowContent = React.memo(
(targetNode?.zIndex ?? 21) + 1
)

// Edges inside subflows need a z-index above the container's body area
// (which has pointer-events: auto) so they're directly clickable.
// Derive from the container's depth-based zIndex (+1) so the edge sits
// just above its parent container but below canvas blocks (z-21+) and
// child blocks (z-1000).
const containerNode = parentLoopId ? nodeMap.get(parentLoopId) : null
const baseZIndex = containerNode ? (containerNode.zIndex ?? 0) + 1 : 0

return {
...edge,
zIndex: connectedToElevated ? elevatedZIndex : 0,
zIndex: connectedToElevated ? elevatedZIndex : baseZIndex,
data: {
...edge.data,
isSelected: selectedEdges.has(edgeContextId),
Expand Down
Loading