精简画布图片工具栏并移除尺寸标注
This commit is contained in:
parent
35c3a8d619
commit
d7d2548673
@ -1198,9 +1198,9 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* 选中时在图片上方显示标题和尺寸 */}
|
||||
{/* 选中时在图片上方显示标题 */}
|
||||
{isSelected && data.src && (
|
||||
<div className="absolute -top-7 left-0 right-0 flex items-center justify-between text-xs text-muted-foreground px-1 z-10">
|
||||
<div className="absolute -top-7 left-0 right-0 flex items-center text-xs text-muted-foreground px-1 z-10">
|
||||
<div className="flex items-center gap-1 min-w-0">
|
||||
<ImagePlus className="h-3 w-3" />
|
||||
{isEditingTitle ? (
|
||||
@ -1235,7 +1235,6 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<span>{node.size.width} × {node.size.height}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@ -1652,22 +1651,6 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) {
|
||||
<TooltipContent side="bottom" className="text-xs">去水印</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
{/* 场景融合 */}
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
disabled={isProcessing}
|
||||
className="h-8 w-8 rounded-full hover:bg-gray-100 dark:hover:bg-white/10 disabled:opacity-50 disabled:pointer-events-none"
|
||||
onClick={() => handleAction('scene-fusion')}
|
||||
>
|
||||
<Layers className="h-4 w-4" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="bottom" className="text-xs">场景融合</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
{/* 文字编辑 */}
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
@ -1767,22 +1750,6 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) {
|
||||
<TooltipContent side="bottom" className="text-xs">尺寸调整</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
{/* 图片标注 */}
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
disabled={isProcessing}
|
||||
className={cn("h-8 w-8 rounded-full hover:bg-gray-100 dark:hover:bg-white/10 disabled:opacity-50 disabled:pointer-events-none", data.hasAnnotations && "text-primary")}
|
||||
onClick={() => handleAction('annotate')}
|
||||
>
|
||||
<Pencil className="h-4 w-4" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="bottom" className="text-xs">标注重点区域</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
{/* 下载 */}
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user