mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): vae layout
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Box, Combobox, FormControl, FormLabel } from '@invoke-ai/ui-library';
|
||||
import { Combobox, FormControl, FormLabel } from '@invoke-ai/ui-library';
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
|
||||
import { useGroupedModelCombobox } from 'common/hooks/useGroupedModelCombobox';
|
||||
@@ -38,20 +38,18 @@ const ParamVAEModelSelect = () => {
|
||||
});
|
||||
|
||||
return (
|
||||
<FormControl isDisabled={!options.length} isInvalid={!options.length}>
|
||||
<FormControl isDisabled={!options.length} isInvalid={!options.length} minW={0} flexGrow={1}>
|
||||
<InformationalPopover feature="paramVAE">
|
||||
<FormLabel m={0}>{t('modelManager.vae')}</FormLabel>
|
||||
</InformationalPopover>
|
||||
<Box w="full" minW={0}>
|
||||
<Combobox
|
||||
isClearable
|
||||
value={value}
|
||||
placeholder={value ? value.value : t('models.defaultVAE')}
|
||||
options={options}
|
||||
onChange={onChange}
|
||||
noOptionsMessage={noOptionsMessage}
|
||||
/>
|
||||
</Box>
|
||||
<Combobox
|
||||
isClearable
|
||||
value={value}
|
||||
placeholder={value ? value.value : t('models.defaultVAE')}
|
||||
options={options}
|
||||
onChange={onChange}
|
||||
noOptionsMessage={noOptionsMessage}
|
||||
/>
|
||||
</FormControl>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -31,7 +31,7 @@ const ParamVAEPrecision = () => {
|
||||
const value = useMemo(() => options.find((o) => o.value === vaePrecision), [vaePrecision]);
|
||||
|
||||
return (
|
||||
<FormControl w={24}>
|
||||
<FormControl flexGrow={0}>
|
||||
<InformationalPopover feature="paramVAEPrecision">
|
||||
<FormLabel m={0}>{t('modelManager.vaePrecision')}</FormLabel>
|
||||
</InformationalPopover>
|
||||
|
||||
Reference in New Issue
Block a user