Skip to content

Commit 352e4c5

Browse files
committed
fix(web): add visual indication for node inputs
1 parent 0b44c8e commit 352e4c5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/web/src/components/workflow/workflow-node.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export const TypeBadge = ({
117117
(edge.target === nodeId && edge.targetHandle === id) ||
118118
(edge.source === nodeId && edge.sourceHandle === id)
119119
);
120+
const isActive = hasValue || isConnected;
120121
// Determine if this is an input parameter
121122
const isInput = position === Position.Left;
122123

@@ -132,8 +133,8 @@ export const TypeBadge = ({
132133
className={cn(
133134
"!w-4 !h-4 !border !rounded-md !inline-flex !items-center !justify-center p !shadow-sm",
134135
{
135-
"!bg-neutral-100 dark:!bg-neutral-800": hasValue,
136-
"!bg-white dark:!bg-neutral-900": !hasValue,
136+
"!bg-neutral-200 dark:!bg-neutral-700": isActive,
137+
"!bg-white dark:!bg-neutral-900": !isActive,
137138
"!border-border": !selected && executionState === "idle",
138139
"!border-yellow-400": !selected && executionState === "executing",
139140
"!border-green-500": !selected && executionState === "completed",

0 commit comments

Comments
 (0)