This commit is contained in:
StyleZhang
2024-03-12 13:03:39 +08:00
parent 22e7393b9d
commit 9753077661
6 changed files with 23 additions and 13 deletions

View File

@ -50,7 +50,7 @@ export const NodeTargetHandle = ({
type='target'
position={Position.Left}
className={`
!w-4 !h-4 !bg-transparent !rounded-none !outline-none !border-none !translate-y-0 z-[1]
!w-4 !h-4 !bg-transparent !rounded-none !outline-none !border-none z-[1]
after:absolute after:w-0.5 after:h-2 after:left-1.5 after:top-1 after:bg-primary-500
${!connected && 'after:opacity-0'}
${data.type === BlockEnum.Start && 'opacity-0'}
@ -111,7 +111,7 @@ export const NodeSourceHandle = ({
type='source'
position={Position.Right}
className={`
!w-4 !h-4 !bg-transparent !rounded-none !outline-none !border-none !translate-y-0 z-[1]
!w-4 !h-4 !bg-transparent !rounded-none !outline-none !border-none z-[1]
after:absolute after:w-0.5 after:h-2 after:right-1.5 after:top-1 after:bg-primary-500
${!connected && 'after:opacity-0'}
${handleClassName}

View File

@ -54,7 +54,7 @@ const BaseNode: FC<BaseNodeProps> = ({
<NodeTargetHandle
id={id}
data={data}
handleClassName='!top-4 !-left-[9px]'
handleClassName='!top-4 !-left-[9px] !translate-y-0'
handleId='target'
/>
)
@ -64,7 +64,7 @@ const BaseNode: FC<BaseNodeProps> = ({
<NodeSourceHandle
id={id}
data={data}
handleClassName='!top-4 !-right-[9px]'
handleClassName='!top-4 !-right-[9px] !translate-y-0'
handleId='source'
/>
)