fix: show scale regions in detail dialog sidebar
This commit is contained in:
parent
c033e75ba1
commit
914e09af73
@ -1847,7 +1847,7 @@ function DetailResultLocalEditDialog({
|
|||||||
? "先框主体,再框目标大小和位置。"
|
? "先框主体,再框目标大小和位置。"
|
||||||
: "在左侧图片上拖拽框选后,这里会显示区域提示词和参考图。"}
|
: "在左侧图片上拖拽框选后,这里会显示区域提示词和参考图。"}
|
||||||
</div>
|
</div>
|
||||||
) : isScaleAdjustMode ? null : (
|
) : (
|
||||||
<div className="max-h-[52vh] space-y-3 overflow-y-auto pr-1">
|
<div className="max-h-[52vh] space-y-3 overflow-y-auto pr-1">
|
||||||
{regions.map((region) => {
|
{regions.map((region) => {
|
||||||
const isActive = region.id === activeRegionId;
|
const isActive = region.id === activeRegionId;
|
||||||
@ -1902,7 +1902,23 @@ function DetailResultLocalEditDialog({
|
|||||||
<X className="h-4 w-4" />
|
<X className="h-4 w-4" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{!isScaleAdjustMode ? (
|
{isScaleAdjustMode ? (
|
||||||
|
<div className="space-y-2 text-sm text-white/58">
|
||||||
|
<div className="flex items-center justify-between gap-3 rounded-xl border border-white/8 bg-black/20 px-3 py-2">
|
||||||
|
<span>主体框</span>
|
||||||
|
<span className="text-xs text-white/40">已框选</span>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center justify-between gap-3 rounded-xl border border-white/8 bg-black/20 px-3 py-2">
|
||||||
|
<span>目标框</span>
|
||||||
|
<span className="text-xs text-white/40">
|
||||||
|
{region.targetRect ? "已设置" : "待框选"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="text-xs leading-5 text-white/34">
|
||||||
|
点击此卡片可聚焦区域,删除按钮会同时移除主体框和目标框。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
<>
|
<>
|
||||||
<Textarea
|
<Textarea
|
||||||
className="min-h-[92px] resize-none border-white/10 bg-black/30 text-sm text-white placeholder:text-white/30"
|
className="min-h-[92px] resize-none border-white/10 bg-black/30 text-sm text-white placeholder:text-white/30"
|
||||||
@ -1984,7 +2000,7 @@ function DetailResultLocalEditDialog({
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</>
|
</>
|
||||||
) : null}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user