fix(ui): processor select styling

This commit is contained in:
psychedelicious 2024-05-02 08:21:03 +10:00 committed by Kent Keirsey
parent c96b98fc9e
commit 47ee08db91

View File

@ -48,20 +48,21 @@ export const ControlAdapterProcessorTypeSelect = memo(({ config, onChange }: Pro
const value = useMemo(() => options.find((o) => o.value === config?.type) ?? null, [options, config?.type]); const value = useMemo(() => options.find((o) => o.value === config?.type) ?? null, [options, config?.type]);
return ( return (
<FormControl> <Flex gap={2}>
<InformationalPopover feature="controlNetProcessor"> <FormControl>
<FormLabel>{t('controlnet.processor')}</FormLabel> <InformationalPopover feature="controlNetProcessor">
</InformationalPopover> <FormLabel>{t('controlnet.processor')}</FormLabel>
<Flex gap={4}> </InformationalPopover>
<Combobox value={value} options={options} onChange={_onChange} isSearchable={false} isClearable={false} /> <Combobox value={value} options={options} onChange={_onChange} isSearchable={false} isClearable={false} />
<IconButton </FormControl>
aria-label={t('controlnet.processor')} <IconButton
onClick={clearProcessor} aria-label={t('controlnet.processor')}
icon={<PiXBold />} onClick={clearProcessor}
variant="ghost" icon={<PiXBold />}
/> variant="ghost"
</Flex> size="sm"
</FormControl> />
</Flex>
); );
}); });