From a450a88b165bdb80aa9ba142dd75398212ad683b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=9C=88?= Date: Thu, 14 May 2026 14:38:05 +0800 Subject: [PATCH] fix(dashboard): increase feedback edge offset for clarity (#247) --- .../src/components/workflow-graph/condition-edge.tsx | 2 +- .../src/components/workflow-graph/use-layout.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/workflow-dashboard/src/components/workflow-graph/condition-edge.tsx b/packages/workflow-dashboard/src/components/workflow-graph/condition-edge.tsx index 18d9ec1..18979fd 100644 --- a/packages/workflow-dashboard/src/components/workflow-graph/condition-edge.tsx +++ b/packages/workflow-dashboard/src/components/workflow-graph/condition-edge.tsx @@ -2,7 +2,7 @@ import { BaseEdge, EdgeLabelRenderer, type EdgeProps, getSmoothStepPath } from " import type { ConditionEdgeData } from "./types.ts"; // Must match the FEEDBACK_OFFSET_X in use-layout.ts -const FEEDBACK_OFFSET_X = 100; +const FEEDBACK_OFFSET_X = 140; // Radius for feedback edge corners const FEEDBACK_RADIUS = 16; diff --git a/packages/workflow-dashboard/src/components/workflow-graph/use-layout.ts b/packages/workflow-dashboard/src/components/workflow-graph/use-layout.ts index d8b575d..7e934ac 100644 --- a/packages/workflow-dashboard/src/components/workflow-graph/use-layout.ts +++ b/packages/workflow-dashboard/src/components/workflow-graph/use-layout.ts @@ -12,7 +12,7 @@ const TERMINAL_NODE_SIZE = 40; // Vertical gap between nodes in the spine const LAYER_GAP = 80; // Horizontal offset for feedback (back) edges routed on the right side -const FEEDBACK_OFFSET_X = 100; +const FEEDBACK_OFFSET_X = 140; type LayoutInput = { edges: readonly WorkflowGraphEdge[];