fix: expose detail scale adjust entry
This commit is contained in:
parent
d058ff32e6
commit
dc499d0d6f
@ -9859,6 +9859,34 @@ export function AgentGenerationWorkspaceDarkV2({
|
|||||||
: "局部编辑"}
|
: "局部编辑"}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
disabled={isDetailLocalEditBusy}
|
||||||
|
onClick={() => {
|
||||||
|
setDetailLocalEditTarget({
|
||||||
|
cardId: card.id,
|
||||||
|
imageUrl: card.resultUrl!,
|
||||||
|
mode: "scale_adjust",
|
||||||
|
title: `${detailReferenceSourceLabel}结果图 ${card.index + 1}`,
|
||||||
|
resultModeType: "detail_replacement",
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
className={cn(
|
||||||
|
IMAGE_OVERLAY_ACTION_CLASS,
|
||||||
|
"inline-flex items-center gap-1.5 disabled:cursor-not-allowed disabled:opacity-45"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{isDetailLocalEditBusy ? (
|
||||||
|
<Loader2 className="h-3.5 w-3.5 animate-spin" />
|
||||||
|
) : (
|
||||||
|
<Maximize2 className="h-3.5 w-3.5" />
|
||||||
|
)}
|
||||||
|
<span>
|
||||||
|
{isDetailLocalEditBusy && isDetailScaleAdjusting
|
||||||
|
? "调整中"
|
||||||
|
: "比例"}
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={isDetailEnhancing}
|
disabled={isDetailEnhancing}
|
||||||
@ -10700,6 +10728,35 @@ export function AgentGenerationWorkspaceDarkV2({
|
|||||||
: "局部编辑"}
|
: "局部编辑"}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
disabled={isDetailLocalEditBusy}
|
||||||
|
onClick={(event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
setDetailLocalEditTarget({
|
||||||
|
cardId: card.id,
|
||||||
|
imageUrl: card.url!,
|
||||||
|
mode: "scale_adjust",
|
||||||
|
title: `AI详情 ${card.index + 1}`,
|
||||||
|
resultModeType: "detail_generation",
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
className={cn(
|
||||||
|
IMAGE_OVERLAY_ACTION_CLASS,
|
||||||
|
"inline-flex items-center gap-1.5 disabled:cursor-not-allowed disabled:opacity-45"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{isDetailLocalEditBusy ? (
|
||||||
|
<Loader2 className="h-3.5 w-3.5 animate-spin" />
|
||||||
|
) : (
|
||||||
|
<Maximize2 className="h-3.5 w-3.5" />
|
||||||
|
)}
|
||||||
|
<span>
|
||||||
|
{isDetailLocalEditBusy && isDetailScaleAdjusting
|
||||||
|
? "调整中"
|
||||||
|
: "比例"}
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={isDetailEnhancing}
|
disabled={isDetailEnhancing}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user