mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 03:45:55 +08:00
fix: workflow if-else node variable tag style (#16583)
This commit is contained in:
parent
e95f0fcceb
commit
17b4d4c7b2
@ -32,8 +32,8 @@ const ConditionVarSelector = ({
|
|||||||
crossAxis: 0,
|
crossAxis: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PortalToFollowElemTrigger onClick={() => onOpenChange(!open)}>
|
<PortalToFollowElemTrigger asChild onClick={() => onOpenChange(!open)}>
|
||||||
<div className="cursor-pointer">
|
<div className="w-full cursor-pointer">
|
||||||
<VariableTag
|
<VariableTag
|
||||||
valueSelector={valueSelector}
|
valueSelector={valueSelector}
|
||||||
varType={varType}
|
varType={varType}
|
||||||
|
@ -78,11 +78,11 @@ const ConditionValue = ({
|
|||||||
<div className='flex h-6 items-center rounded-md bg-workflow-block-parma-bg px-1'>
|
<div className='flex h-6 items-center rounded-md bg-workflow-block-parma-bg px-1'>
|
||||||
{!isEnvVar && !isChatVar && <Variable02 className={cn('mr-1 h-3.5 w-3.5 shrink-0 text-text-accent', isException && 'text-text-warning')} />}
|
{!isEnvVar && !isChatVar && <Variable02 className={cn('mr-1 h-3.5 w-3.5 shrink-0 text-text-accent', isException && 'text-text-warning')} />}
|
||||||
{isEnvVar && <Env className='mr-1 h-3.5 w-3.5 shrink-0 text-util-colors-violet-violet-600' />}
|
{isEnvVar && <Env className='mr-1 h-3.5 w-3.5 shrink-0 text-util-colors-violet-violet-600' />}
|
||||||
{isChatVar && <BubbleX className='h-3.5 w-3.5 text-util-colors-teal-teal-700' />}
|
{isChatVar && <BubbleX className='h-3.5 w-3.5 shrink-0 text-util-colors-teal-teal-700' />}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'ml-0.5 shrink-0 truncate text-xs font-medium text-text-accent',
|
'ml-0.5 shrink-[2] truncate text-xs font-medium text-text-accent',
|
||||||
!notHasValue && 'max-w-[70px]',
|
!notHasValue && 'max-w-[70px]',
|
||||||
isException && 'text-text-warning',
|
isException && 'text-text-warning',
|
||||||
)}
|
)}
|
||||||
@ -98,7 +98,7 @@ const ConditionValue = ({
|
|||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
!notHasValue && (
|
!notHasValue && (
|
||||||
<div className='truncate text-xs text-text-secondary' title={formatValue}>{isSelect ? selectName : formatValue}</div>
|
<div className='shrink-[3] truncate text-xs text-text-secondary' title={formatValue}>{isSelect ? selectName : formatValue}</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user