From c80b46d43cdc5c7c50c43ec0b2ebad44a283c006 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 20 Feb 2026 23:15:10 +0800 Subject: [PATCH] refactor: align canvas image toolbar with available features --- components/canvas/nodes/ImageNode.tsx | 327 +++++++++----------------- 1 file changed, 112 insertions(+), 215 deletions(-) diff --git a/components/canvas/nodes/ImageNode.tsx b/components/canvas/nodes/ImageNode.tsx index 3d7077a0f..733bb7ba1 100644 --- a/components/canvas/nodes/ImageNode.tsx +++ b/components/canvas/nodes/ImageNode.tsx @@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect, useCallback } from "react"; import { createPortal } from "react-dom"; -import { ImagePlus, Loader2, AlertCircle, MoreVertical, Scissors, Eraser, Sparkles, Expand, Maximize2, Move3D, Layers, Download, Trash2, RefreshCw, Pencil, MessageSquarePlus, Crosshair, Check, X, Type, StickyNote } from "lucide-react"; +import { ImagePlus, Loader2, AlertCircle, MoreVertical, MoreHorizontal, Scissors, Eraser, Sparkles, Expand, Maximize2, Move3D, Download, Trash2, RefreshCw, Pencil, MessageSquarePlus, Crosshair, Check, X, Type, StickyNote } from "lucide-react"; import { Button } from "@/components/ui/button"; import { DropdownMenu, @@ -1617,10 +1617,6 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) { 角度编辑 - handleAction('scene-fusion')}> - - 详情替换 - handleAction('prompt-regenerate')}> 提示词重绘 @@ -1732,7 +1728,7 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) { {isSelected && !isMultiSelected && data.src && !isEditingTitle && typeof document !== 'undefined' && createPortal(
e.stopPropagation()} onClick={(e) => e.stopPropagation()} > - {/* 添加到对话 */} - - - - - 添加到对话 - - - {/* 🆕 物品拾取 */} - - - - - 拾取物品 - - - {/* 分隔线 */} -
- - {/* 放大/高清 */} - - - - - 高清放大 - - - {/* 移除背景/抠图 */} - - - - - 移除背景 - + - {/* 去水印 */} - - - - - 去水印 - - - {/* 文字编辑 */} - - - - - 编辑文字 - +
- {/* 图片备注 */} - - - - - 图片备注 - + - {/* 提示词重绘 */} - - + + + + + + + + + + - - 提示词重绘 - - - {/* 角度编辑 */} - - - - - 角度编辑 - - - {/* 扩展 */} - - - - - 图片扩展 - - - {/* 尺寸调整 */} - - - - - 尺寸调整 - - - {/* 下载 */} - - - - - 下载图片 - - - {/* 删除 */} - - - - - 删除 - + + 删除 + + + + +
, document.body