mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox
This commit is contained in:
@ -93,9 +93,9 @@ const ConditionValue = ({
|
||||
: comparisonOperator
|
||||
return (
|
||||
<div className="relative flex h-6 items-center space-x-1" key={c.id}>
|
||||
<div className="system-xs-medium text-text-accent">{c.key}</div>
|
||||
<div className="system-xs-medium text-text-primary">{comparisonOperatorName}</div>
|
||||
{c.comparison_operator && !isEmptyRelatedOperator(c.comparison_operator) && <div className="system-xs-regular text-text-secondary">{isSelect(c) ? selectName(c) : formatValue(c)}</div>}
|
||||
<div className="text-text-accent system-xs-medium">{c.key}</div>
|
||||
<div className="text-text-primary system-xs-medium">{comparisonOperatorName}</div>
|
||||
{c.comparison_operator && !isEmptyRelatedOperator(c.comparison_operator) && <div className="text-text-secondary system-xs-regular">{isSelect(c) ? selectName(c) : formatValue(c)}</div>}
|
||||
{index !== sub_variable_condition.conditions.length - 1 && (<div className="absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent">{t(`nodes.ifElse.${sub_variable_condition.logical_operator}`, { ns: 'workflow' })}</div>)}
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -281,11 +281,11 @@ const ConditionItem = ({
|
||||
<div className="flex cursor-pointer justify-start">
|
||||
<div className="inline-flex h-6 max-w-full items-center rounded-md border-[0.5px] border-components-panel-border-subtle bg-components-badge-white-to-dark px-1.5 text-text-accent shadow-xs">
|
||||
<Variable02 className="h-3.5 w-3.5 shrink-0 text-text-accent" />
|
||||
<div className="system-xs-medium ml-0.5 truncate">{item?.name}</div>
|
||||
<div className="ml-0.5 truncate system-xs-medium">{item?.name}</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
: <div className="system-sm-regular text-left text-components-input-text-placeholder">{t('placeholder.select', { ns: 'common' })}</div>
|
||||
: <div className="text-left text-components-input-text-placeholder system-sm-regular">{t('placeholder.select', { ns: 'common' })}</div>
|
||||
)}
|
||||
hideChecked
|
||||
/>
|
||||
|
||||
@ -157,7 +157,7 @@ const ConditionNumberInput = ({
|
||||
onFocus={setFocus}
|
||||
onBlur={setBlur}
|
||||
/>
|
||||
{!isFocus && unit && <div className="system-sm-regular absolute right-2 top-[50%] translate-y-[-50%] text-text-tertiary">{unit}</div>}
|
||||
{!isFocus && unit && <div className="absolute right-2 top-[50%] translate-y-[-50%] text-text-tertiary system-sm-regular">{unit}</div>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user