fix: var name too long would break ui in var assigner and end nodes (#3361)

This commit is contained in:
Joel
2024-04-11 18:19:33 +08:00
committed by GitHub
parent 617e7cee81
commit 509c640a80
2 changed files with 3 additions and 4 deletions

View File

@@ -79,8 +79,7 @@ const Node: FC<NodeProps<EndNodeType>> = ({
</div>
</div>
<div className='text-xs font-normal text-gray-700'>
<div className='ml-0.5 text-xs font-normal text-gray-500 capitalize'>{getVarType(node?.id || '', value_selector)}</div>
<div className='max-w-[42px] ml-0.5 text-xs font-normal text-gray-500 capitalize truncate' title={getVarType(node?.id || '', value_selector)}>{getVarType(node?.id || '', value_selector)}</div>
</div>
</div>
)