fix: hide image count selector when only one output is allowed
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-20 17:32:08 +08:00
parent 2f8ff5fd12
commit 56a16d2e7a

View File

@ -138,6 +138,7 @@ export function ImageParamsBar({
});
const imageCountOptions = getImageCountOptions();
const showImageCountSelector = !hideImageCount && imageCountOptions.length > 1;
// 是否显示阿里生图专用参数
const isAlibabaImage = providerType === "alibaba-image";
@ -224,7 +225,7 @@ export function ImageParamsBar({
</DropdownMenuContent>
</DropdownMenu>
{!hideImageCount && (
{showImageCountSelector && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" className="h-8 px-2 gap-1 focus-visible:ring-0 focus-visible:ring-offset-0 focus:outline-none focus:ring-0">