Skip to content
Merged
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
2 changes: 2 additions & 0 deletions apps/platform/src/features/flow-editor/nodes/core-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const CoreNode = memo(({ selected, data }) => {
type="target"
position={LAYOUT[handleLayout][0]}
tooltip={t('ui.text.dataEntry')}
color={prefs?.color}
/>

<Card className="items-start bg-transparent py-2! shadow-none border-none">
Expand Down Expand Up @@ -273,6 +274,7 @@ const CoreNode = memo(({ selected, data }) => {
position={LAYOUT[handleLayout][1]}

tooltip={t('ui.text.dataOutput')}
color={prefs?.color}
/>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions apps/platform/src/features/flow-editor/nodes/node-handles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type NodeHandlesProps = {
type: 'source' | 'target'
position: Position
tooltip: string
color?: string
}

// Labels sit outside the node so they never cover its content.
Expand All @@ -28,6 +29,7 @@ const NodeHandles = ({
type,
position,
tooltip,
color,
}: NodeHandlesProps) => {
const isVertical = position === 'left' || position === 'right'

Expand All @@ -45,7 +47,7 @@ const NodeHandles = ({
id={handle.key}
type={type}
position={position}
style={placement}
style={{ ...placement, color }}
className="border-ring hover:shadow-md"
/>
</TooltipTrigger>
Expand All @@ -57,7 +59,7 @@ const NodeHandles = ({
<span
aria-hidden
className={cn(
'text-muted-foreground pointer-events-none absolute text-[10px] whitespace-nowrap',
'bg-background ring-border pointer-events-none absolute rounded px-1 py-px text-[10px] leading-tight whitespace-nowrap ring-1',
LABEL_SIDE[position],
)}
style={placement}
Expand Down