fix(dashboard): increase feedback edge offset for clarity (#247)
This commit is contained in:
@@ -2,7 +2,7 @@ import { BaseEdge, EdgeLabelRenderer, type EdgeProps, getSmoothStepPath } from "
|
|||||||
import type { ConditionEdgeData } from "./types.ts";
|
import type { ConditionEdgeData } from "./types.ts";
|
||||||
|
|
||||||
// Must match the FEEDBACK_OFFSET_X in use-layout.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
|
// Radius for feedback edge corners
|
||||||
const FEEDBACK_RADIUS = 16;
|
const FEEDBACK_RADIUS = 16;
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const TERMINAL_NODE_SIZE = 40;
|
|||||||
// Vertical gap between nodes in the spine
|
// Vertical gap between nodes in the spine
|
||||||
const LAYER_GAP = 80;
|
const LAYER_GAP = 80;
|
||||||
// Horizontal offset for feedback (back) edges routed on the right side
|
// Horizontal offset for feedback (back) edges routed on the right side
|
||||||
const FEEDBACK_OFFSET_X = 100;
|
const FEEDBACK_OFFSET_X = 140;
|
||||||
|
|
||||||
type LayoutInput = {
|
type LayoutInput = {
|
||||||
edges: readonly WorkflowGraphEdge[];
|
edges: readonly WorkflowGraphEdge[];
|
||||||
|
|||||||
Reference in New Issue
Block a user