diff --git a/components/canvas/nodes/ImageNode.tsx b/components/canvas/nodes/ImageNode.tsx index c047b66..6033881 100644 --- a/components/canvas/nodes/ImageNode.tsx +++ b/components/canvas/nodes/ImageNode.tsx @@ -20,6 +20,7 @@ import { } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; +import { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider } from "@/components/ui/tooltip"; import { toast } from "sonner"; import { useCanvasStore } from "@/store/canvas"; import { imageGenerationService } from "@/services/canvas"; @@ -594,150 +595,178 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) { {/* 工具栏使用 Portal 渲染到 body,避免被裁剪 */} {isSelected && data.src && !isProcessing && typeof document !== 'undefined' && createPortal( -
e.stopPropagation()} - > - {/* 🆕 添加到对话 */} - - - {/* 分隔线 */} -
- - {/* 放大/高清 */} - - - {/* 移除背景/抠图 */} - - - {/* 场景融合 */} - - - {/* 角度编辑 */} - - - {/* 扩展 */} - - - {/* 尺寸调整 */} - - - {/* 图片标注 */} - - - {/* 更多操作 */} - - - - - - - - 下载图片 - - - deleteNode(node.id)} - className="text-destructive focus:text-destructive" - > - - 删除 - - - -
, + {/* 添加到对话 */} + + + + + 添加到对话 + + + {/* 分隔线 */} +
+ + {/* 放大/高清 */} + + + + + 高清放大 + + + {/* 移除背景/抠图 */} + + + + + 移除背景 + + + {/* 场景融合 */} + + + + + 场景融合 + + + {/* 角度编辑 */} + + + + + 角度编辑 + + + {/* 扩展 */} + + + + + 图片扩展 + + + {/* 尺寸调整 */} + + + + + 尺寸调整 + + + {/* 图片标注 */} + + + + + 标注重点区域 + + + {/* 下载 */} + + + + + 下载图片 + + + {/* 删除 */} + + + + + 删除 + +
+ , document.body )}