fix: prevent workflow node titles from overflowing (#35740)

This commit is contained in:
非法操作 2026-04-30 17:20:37 +08:00 committed by GitHub
parent 91f92c7083
commit dcf21a6a84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View File

@ -92,12 +92,12 @@ const WorkflowProcessItem = ({
)
}
<div
className={cn('system-xs-medium text-text-secondary', !collapse && 'grow')}
className="min-w-0 grow truncate system-xs-medium text-text-secondary"
data-testid="workflow-process-title"
>
{!collapse ? t('common.workflowProcess', { ns: 'workflow' }) : latestNode?.title}
</div>
<div className={cn('ml-1 i-ri-arrow-right-s-line h-4 w-4 text-text-tertiary', !collapse && 'rotate-90')} />
<div className={cn('ml-1 i-ri-arrow-right-s-line h-4 w-4 shrink-0 text-text-tertiary', !collapse && 'rotate-90')} />
</div>
{
!collapse && (

View File

@ -284,13 +284,15 @@ const BaseNode: FC<BaseNodeProps> = ({
</div>
)}
</div>
<NodeHeaderMeta
data={data}
hasVarValue={hasVarValue}
isLoading={isLoading}
loopIndex={LoopIndex}
t={t}
/>
<div className="flex shrink-0 items-center">
<NodeHeaderMeta
data={data}
hasVarValue={hasVarValue}
isLoading={isLoading}
loopIndex={LoopIndex}
t={t}
/>
</div>
</div>
<NodeBody
data={data}