Browse Source

fix: simplify RouterNode placeholder handle styling

Make input placeholder grey with solid border matching other handles,
and remove the unnecessary output-side placeholder connector.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 5 months ago
parent
commit
45c90d2e46
  1. 16
      src/components/nodes/RouterNode.tsx

16
src/components/nodes/RouterNode.tsx

@ -94,7 +94,7 @@ export const RouterNode = memo(({ id, data, selected }: NodeProps<WorkflowNode>)
backgroundColor: "#6b7280", backgroundColor: "#6b7280",
width: 12, width: 12,
height: 12, height: 12,
border: "2px dashed #9ca3af", border: "2px solid #1e1e1e",
}} }}
/> />
)} )}
@ -116,20 +116,6 @@ export const RouterNode = memo(({ id, data, selected }: NodeProps<WorkflowNode>)
}} }}
/> />
))} ))}
{showGenericHandles && (
<Handle
type="source"
position={Position.Right}
id="generic-output"
style={{
top: baseOffset + activeInputTypes.length * handleSpacing,
backgroundColor: "#6b7280",
width: 12,
height: 12,
border: "2px dashed #9ca3af",
}}
/>
)}
{/* Body content */} {/* Body content */}
<div className="text-[10px] text-neutral-500 text-center py-1"> <div className="text-[10px] text-neutral-500 text-center py-1">

Loading…
Cancel
Save