Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

非法操作dcf21a6a846e
diff --git a/web/app/components/base/chat/chat/answer/workflow-process.tsx b/web/app/components/base/chat/chat/answer/workflow-process.tsx
index fb67fe80ff1..b2036e90605 100644
--- a/web/app/components/base/chat/chat/answer/workflow-process.tsx
+++ b/web/app/components/base/chat/chat/answer/workflow-process.tsx
@@ -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 && (
diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx
index 43f8e5773ea..7779e7f5346 100644
--- a/web/app/components/workflow/nodes/_base/node.tsx
+++ b/web/app/components/workflow/nodes/_base/node.tsx
@@ -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}