From d0eea47a5bb0ef7204175bdb17e43c646e4daae6 Mon Sep 17 00:00:00 2001
From: ddCat <2695092045@qq.com>
Date: Fri, 31 Jul 2026 17:17:15 +0800
Subject: [PATCH] =?UTF-8?q?fix(canvas):=20=E6=8F=90=E7=A4=BA=E8=AF=8D?=
=?UTF-8?q?=E9=9D=A2=E6=9D=BF=20-=20=E7=BB=9F=E4=B8=80=E9=BB=91=E8=89=B2?=
=?UTF-8?q?=E5=B1=82=E7=BA=A7=E5=B9=B6=E7=A7=BB=E9=99=A4=E8=BE=93=E5=85=A5?=
=?UTF-8?q?=E8=81=9A=E7=84=A6=E6=8F=8F=E8=BE=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../canvas/canvas-node-prompt-panel.tsx | 66 +++++++++++--------
.../canvas/canvas-preset-picker.tsx | 2 +-
2 files changed, 39 insertions(+), 29 deletions(-)
diff --git a/web/src/components/canvas/canvas-node-prompt-panel.tsx b/web/src/components/canvas/canvas-node-prompt-panel.tsx
index 8711bb547..d77b5af9b 100644
--- a/web/src/components/canvas/canvas-node-prompt-panel.tsx
+++ b/web/src/components/canvas/canvas-node-prompt-panel.tsx
@@ -57,7 +57,17 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi
const videoFrameOptions = mentionReferences
.filter((item) => item.active && item.kind === "image")
.map((item) => ({ nodeId: item.nodeId, label: item.label, title: item.title, previewUrl: item.previewUrl }));
- const composerSurface = theme.spatial.dropzone;
+ const darkSurface = themeName === "dark";
+ const monochromeAccent = theme.node.activeStroke;
+ const shellBorder = darkSurface ? "rgba(255,255,255,.08)" : "rgba(17,24,39,.12)";
+ const insetBorder = darkSurface ? "rgba(255,255,255,.06)" : "rgba(17,24,39,.10)";
+ const shellSurface = darkSurface
+ ? theme.canvas.background
+ : `linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.86)), ${theme.spatial.elevated}`;
+ const composerSurface = darkSurface
+ ? theme.canvas.background
+ : `linear-gradient(180deg, rgba(255,255,255,.7), rgba(248,250,252,.72)), ${theme.spatial.dropzone}`;
+ const controlSurface = darkSurface ? theme.canvas.background : "rgba(17,24,39,.045)";
const referenceShelfHeight = activeReferenceCount ? 42 : 0;
const composerMinHeight = activeReferenceCount ? 82 : 58;
const composerHeight = Math.min(144, Math.max(composerMinHeight, Math.ceil(promptContentHeight + referenceShelfHeight)));
@@ -130,8 +140,8 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi
onChange={(portraitTexture) => onConfigChange(node.id, { portraitTexture })}
/>
) : (
-
-
+
+
{modeDisplayName(mode)}创作
@@ -148,13 +158,13 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi
/>
) : null}
- {activeReferenceCount ?
} label={`已连接 ${activeReferenceCount} 个`} active /> : null}
+ {activeReferenceCount ?
} label={`已连接 ${activeReferenceCount} 个`} /> : null}
{!expanded && canExpandPrompt ? (