diff --git a/frontend/src/components/TaskTree/TaskFlowView.tsx b/frontend/src/components/TaskTree/TaskFlowView.tsx index ab7f23e..451acf9 100644 --- a/frontend/src/components/TaskTree/TaskFlowView.tsx +++ b/frontend/src/components/TaskTree/TaskFlowView.tsx @@ -18,6 +18,10 @@ function active(s: string) { return s === "WIP" || s === "PENDING"; } function ArrowRight({ color = "#9ca3af" }: { color?: string }) { return ; } +/** 微型左箭头 SVG */ +function ArrowLeft({ color = "#9ca3af" }: { color?: string }) { + return ; +} function parseImages(s: string | null | undefined): string[] { if (!s) return []; try { return JSON.parse(s); } catch { return []; } } function imageUrl(u: string) { if (!u) return ""; return u.startsWith("http") ? u : import.meta.env.VITE_API_BASE_URL + (u.startsWith("/") ? u : "/" + u); } @@ -144,10 +148,10 @@ export const TaskFlowView = memo(function TaskFlowView({ tasks, onAction, curren return (
- {/* 连线+箭头 → 右侧指向中央 */} + {/* 左翼:箭头 ◀ 指向分支卡片(背离中央主干) */}
+
-
); @@ -163,10 +167,10 @@ export const TaskFlowView = memo(function TaskFlowView({ tasks, onAction, curren const isLegacy = legacySubs.includes(t); return (
- {/* 连线+箭头 → 右侧指向外侧 */} + {/* 右翼:箭头 ▶ 指向分支卡片(背离中央主干) */}
-
+
@@ -203,8 +207,8 @@ export const TaskFlowView = memo(function TaskFlowView({ tasks, onAction, curren
+
-
))} @@ -222,8 +226,8 @@ export const TaskFlowView = memo(function TaskFlowView({ tasks, onAction, curren {rightChildren.map(c => (
-
+