diff --git a/web/src/components/canvas/canvas-node.tsx b/web/src/components/canvas/canvas-node.tsx index 3e0ec360d..c7fb6cf78 100644 --- a/web/src/components/canvas/canvas-node.tsx +++ b/web/src/components/canvas/canvas-node.tsx @@ -559,7 +559,7 @@ function DrawingContent({ node, theme, drawingProjectId }: NodeContentRendererPr )}
-
{node.title || "绘图"}
+
{node.title || "绘图"}
{shapeCount} 个图形 · {pageCount} 个页面
@@ -723,7 +723,7 @@ function SkillContent({ node, theme }: NodeContentRendererProps) {
-
{skill?.name || node.title || "技能"}
+
{skill?.name || node.title || "技能"}
{skillCategoryLabel(skill?.category)} · @@ -870,7 +870,7 @@ function EmptyImageContent({ node, theme, isBatchRoot, batchCount, batchExpanded
{isCharacterReference ? (
-
{node.metadata?.characterName || node.title}
+
{node.metadata?.characterName || node.title}
多视角参考 · 待生成
) : 空图片节点} @@ -924,7 +924,7 @@ function AudioNodeContent({ node, theme }: NodeContentRendererProps) {
- {node.title || "音频"} + {node.title || "音频"}
@@ -1137,11 +1137,12 @@ function NodeExternalHeader({ node, scale, active, editable, editing, draft, the if (scale < NODE_EXTERNAL_HEADER_MIN_SCALE && !editing) return null; const inverseScale = 1 / Math.max(scale, 0.05); const Icon = nodeTypeIcon(node.type); + const maxHeaderWidth = Math.min(240, node.width * scale); return (
event.stopPropagation()} onPointerDown={(event) => event.stopPropagation()} > @@ -1150,7 +1151,7 @@ function NodeExternalHeader({ node, scale, active, editable, editing, draft, the onDraftChange(event.target.value)} onFocus={(event) => event.currentTarget.select()} @@ -1162,12 +1163,12 @@ function NodeExternalHeader({ node, scale, active, editable, editing, draft, the aria-label="节点名称" /> ) : editable ? ( - ) : ( - {node.title} + {node.title} )}
); diff --git a/web/src/components/canvas/canvas-script-node.tsx b/web/src/components/canvas/canvas-script-node.tsx index f676549af..7e072910b 100644 --- a/web/src/components/canvas/canvas-script-node.tsx +++ b/web/src/components/canvas/canvas-script-node.tsx @@ -126,7 +126,7 @@ export function CanvasScriptNodeContent({ node, batch, pipeline, scale, mentionR
event.stopPropagation()}>
- {node.title || "分镜脚本"} + {node.title || "分镜脚本"} {batchSummary ? {batchSummary} : taskFeedback ? {taskFeedback} : null} {rows.length} 镜 · {totalDuration}s {batch ? <> @@ -210,19 +210,21 @@ export function CanvasScriptNodeContent({ node, batch, pipeline, scale, mentionR onWheel={(event) => event.stopPropagation()} />
event.stopPropagation()} onPointerDown={(event) => event.stopPropagation()}> -
- navigateToSettings({ continueCreation: true })} - /> -
+ +
+ navigateToSettings({ continueCreation: true })} + /> +
+
{simpleMode ? 自动拆分 · 默认时长 : className="min-w-32" size="small" @@ -448,7 +450,7 @@ export function CanvasScriptEditor({ node, open, onClose, onUpdateRows, onVisibl } function CompactInput({ value, placeholder, borderColor, onChange }: { value: string; placeholder: string; borderColor: string; onChange: (value: string) => void }) { - return