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]);
return (
<Flex gap={2}>
<FormControl>
<InformationalPopover feature="controlNetProcessor">
<FormLabel>{t('controlnet.processor')}</FormLabel>
</InformationalPopover>
<Flex gap={4}>
<Combobox value={value} options={options} onChange={_onChange} isSearchable={false} isClearable={false} />
</FormControl>
<IconButton
aria-label={t('controlnet.processor')}
onClick={clearProcessor}
icon={<PiXBold />}
variant="ghost"
size="sm"
/>
</Flex>
</FormControl>
);
});