From c2527027d62cd9bc106589c9f8302ad57482fac6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 28 Mar 2026 17:26:55 +0800 Subject: [PATCH] fix: normalize workflow timeline chip alignment --- .../agents/AgentWorkflowPanelDarkV2.tsx | 100 ++++++++---------- 1 file changed, 42 insertions(+), 58 deletions(-) diff --git a/components/agents/AgentWorkflowPanelDarkV2.tsx b/components/agents/AgentWorkflowPanelDarkV2.tsx index 7359c5a4e..51a39c653 100644 --- a/components/agents/AgentWorkflowPanelDarkV2.tsx +++ b/components/agents/AgentWorkflowPanelDarkV2.tsx @@ -728,7 +728,7 @@ export function AgentWorkflowPanelDarkV2({ return ( -
+
-
+
{activeStepChildLabel ? ( ) : null} {stepSelectedPath.length > 0 ? ( -
- {stepSelectedPath.map((option, optionIndex) => { - const optionDepth = optionIndex + 1; - const optionLevelActive = - active && - (activeEmbeddedOptionLevel?.depth || 1) === optionDepth; +
+ {stepSelectedPath.map((option, optionIndex) => { + const optionDepth = optionIndex + 1; + const optionLevelActive = + active && + (activeEmbeddedOptionLevel?.depth || 1) === optionDepth; - return ( - - ); - })} + return ( + + ); + })}
) : ( - + 待选择 )} @@ -869,22 +869,6 @@ export function AgentWorkflowPanelDarkV2({ ) : null} -
-
- - 当前正在选择 - - - {activeEmbeddedStepEntry.step.title} - -
-
- {activeEmbeddedOptionLevel.depth === 1 - ? "当前区域展示的是这个步骤的主卡片。选中后系统会继续切到该步骤的下一级,或自动进入下一个步骤。" - : `当前区域展示的是「${activeEmbeddedStepEntry.step.title}」的第 ${activeEmbeddedOptionLevel.depth} 级子卡片,不是上一个已完成步骤的卡片。`} -
-
-
{activeEmbeddedOptionLevel.depth === 1