From ef311c7470912d3902c67c8026b2b6ea925c213d Mon Sep 17 00:00:00 2001 From: ddCat <2695092045@qq.com> Date: Mon, 3 Aug 2026 22:28:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas):=20=E8=8A=82=E7=82=B9=E5=8D=A1?= =?UTF-8?q?=E7=89=87=20-=20=E5=8E=BB=E6=8E=89=E5=B7=A6=E4=BE=A7=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=89=B2=E5=B8=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/canvas/canvas-node.tsx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/web/src/components/canvas/canvas-node.tsx b/web/src/components/canvas/canvas-node.tsx index 224be03fe..c8d27555d 100644 --- a/web/src/components/canvas/canvas-node.tsx +++ b/web/src/components/canvas/canvas-node.tsx @@ -385,12 +385,6 @@ export const CanvasNode = React.memo(function CanvasNode({ } as React.CSSProperties } > - {/* 节点类型色带(对应 #97 决策1:左侧3px色条,远距离最强信号)*/} -
{/* 节点状态徽章(对应 #97 决策2:左上角 loading/success/error,近距离确认信号)*/} {data.metadata?.status && data.metadata.status !== "idle" && data.type !== CanvasNodeType.Frame ? ( @@ -1204,20 +1198,6 @@ function nodeTypeIcon(type: CanvasNodeType) { return Type; } -// 节点类型色带色(对应 #97 决策1 色带方案,引用 --cn-type-* token) -function nodeTypeColorVar(type: CanvasNodeType, isCharacter?: boolean): string { - if (isCharacter) return "var(--cn-type-character)"; - if (type === CanvasNodeType.Image) return "var(--cn-type-image)"; - if (type === CanvasNodeType.Video) return "var(--cn-type-video)"; - if (type === CanvasNodeType.Audio) return "var(--cn-type-audio)"; - if (type === CanvasNodeType.Drawing) return "var(--cn-type-drawing)"; - if (type === CanvasNodeType.Script) return "var(--cn-type-script)"; - if (type === CanvasNodeType.Config) return "var(--cn-type-config)"; - if (type === CanvasNodeType.Skill) return "var(--cn-type-skill)"; - if (type === CanvasNodeType.Frame) return "var(--cn-type-frame)"; - return "var(--cn-type-text)"; -} - // 节点状态徽章(对应 #97 决策2:左上角状态指示,loading/success/error) function NodeStatusBadge({ status }: { status: "loading" | "success" | "error" }) { if (status === "loading") {