Skip to content

Commit 9a8b86c

Browse files
committed
refactor: replace <p> tags with <span> for better styling in WorkflowNode component
1 parent 80e588f commit 9a8b86c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,14 @@ export const WorkflowNode = memo(
453453
executionState={data.executionState}
454454
selected={selected}
455455
/>
456-
<p className="text-xs text-neutral-700 dark:text-neutral-300 overflow-hidden text-ellipsis">
456+
<span className="text-xs text-foreground font-medium font-mono truncate">
457457
{input.name}
458458
{input.repeated && (
459459
<span className="text-neutral-500 dark:text-neutral-400 ml-1">
460460
*
461461
</span>
462462
)}
463-
</p>
463+
</span>
464464
</div>
465465
))}
466466
</div>
@@ -474,9 +474,9 @@ export const WorkflowNode = memo(
474474
key={`output-${output.id}-${index}`}
475475
className="flex items-center gap-3 text-xs relative"
476476
>
477-
<p className="text-xs text-neutral-700 dark:text-neutral-300 overflow-hidden text-ellipsis">
477+
<span className="text-xs text-foreground font-medium font-mono truncate">
478478
{output.name}
479-
</p>
479+
</span>
480480
<TypeBadge
481481
type={output.type}
482482
position={Position.Right}

0 commit comments

Comments
 (0)