Skip to content

Commit 6320d18

Browse files
fix(ui): upscale dropdown activates when clicking image actions
Weird issue with `react-select`... Made the popover lazy as a workaround. Also updated styling of the popover.
1 parent 37c8b9d commit 6320d18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

invokeai/frontend/web/src/features/parameters/components/Upscale/ParamRealESRGANModel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const ParamESRGANModel = () => {
7676
);
7777

7878
return (
79-
<InvControl label={t('models.esrganModel')}>
79+
<InvControl label={t('models.esrganModel')} orientation="vertical">
8080
<InvSelect value={value} onChange={onChange} options={options} />
8181
</InvControl>
8282
);

invokeai/frontend/web/src/features/parameters/components/Upscale/ParamUpscaleSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ParamUpscalePopover = (props: Props) => {
3737
}, [dispatch, imageDTO, isAllowedToUpscale, onClose]);
3838

3939
return (
40-
<InvPopover isOpen={isOpen} onClose={onClose}>
40+
<InvPopover isOpen={isOpen} onClose={onClose} isLazy>
4141
<InvPopoverTrigger>
4242
<InvIconButton
4343
tooltip={t('parameters.upscale')}
@@ -47,7 +47,7 @@ const ParamUpscalePopover = (props: Props) => {
4747
/>
4848
</InvPopoverTrigger>
4949
<InvPopoverContent>
50-
<InvPopoverBody>
50+
<InvPopoverBody minW={96}>
5151
<Flex flexDirection="column" gap={4}>
5252
<ParamESRGANModel />
5353
<InvButton

0 commit comments

Comments
 (0)