fix: allow line breaks when a field value overflows due to excessive length (#33339)

This commit is contained in:
NFish 2026-03-12 11:15:29 +08:00 committed by GitHub
parent d5724aebde
commit 44713a5c0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,14 +76,14 @@ const ConditionValue = ({
}, [isSelect, t, value]) }, [isSelect, t, value])
return ( return (
<div className="flex h-6 items-center rounded-md bg-workflow-block-parma-bg px-1"> <div className="flex flex-wrap items-center rounded-md bg-workflow-block-parma-bg">
<VariableLabelInText <VariableLabelInText
className="w-0 grow" className="flex min-w-0 shrink-0 items-center border-none bg-transparent shadow-none"
variables={variableSelector} variables={variableSelector}
nodeTitle={node?.data.title} nodeTitle={node?.data.title}
nodeType={node?.data.type} nodeType={node?.data.type}
isExceptionVariable={isException} isExceptionVariable={isException}
notShowFullPath notShowFullPath={false}
/> />
<div <div
className="mx-1 shrink-0 text-xs font-medium text-text-primary" className="mx-1 shrink-0 text-xs font-medium text-text-primary"
@ -93,7 +93,7 @@ const ConditionValue = ({
</div> </div>
{ {
!notHasValue && ( !notHasValue && (
<div className="shrink-[3] truncate text-xs text-text-secondary" title={formatValue}>{isSelect ? selectName : formatValue}</div> <div className="grow truncate px-1.5 text-xs leading-6 text-text-secondary" title={formatValue}>{isSelect ? selectName : formatValue}</div>
) )
} }
</div> </div>