mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 06:06:35 +08:00
fix: allow line breaks when a field value overflows due to excessive length (#33339)
This commit is contained in:
parent
d5724aebde
commit
44713a5c0f
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user