fix: workflow if-else node variable tag style (#16583)

This commit is contained in:
zxhlyh 2025-03-24 11:06:10 +08:00 committed by GitHub
parent e95f0fcceb
commit 17b4d4c7b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -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}

View File

@ -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>