fix: hide image count selector when only one output is allowed
This commit is contained in:
parent
2f8ff5fd12
commit
56a16d2e7a
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user