|
|
|
|
@ -13,7 +13,7 @@ export const SettingItem = memo(({ label, children, status, tooltip }: SettingIt
|
|
|
|
|
const indicator: ComponentProps<typeof Indicator>['color'] = status === 'error' ? 'red' : status === 'warning' ? 'yellow' : undefined
|
|
|
|
|
const needTooltip = ['error', 'warning'].includes(status as any)
|
|
|
|
|
return <div className='relative flex items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1.5 py-1 text-xs font-normal'>
|
|
|
|
|
<div className={classNames('shrink-0 truncate text-text-tertiary system-xs-medium-uppercase', !!children && 'max-w-[100px]')}>
|
|
|
|
|
<div className={classNames('system-xs-medium-uppercase max-w-full shrink-0 truncate text-text-tertiary', !!children && 'max-w-[100px]')}>
|
|
|
|
|
{label}
|
|
|
|
|
</div>
|
|
|
|
|
<Tooltip popupContent={tooltip} disabled={!needTooltip}>
|
|
|
|
|
|