fix(ui): Misalignment of model search entries

This commit is contained in:
blessedcoolant 2023-03-17 17:36:41 +13:00 committed by psychedelicious
parent 7789e8319c
commit 6ecf53078f

View File

@ -91,7 +91,9 @@ function SearchModelEntry({
onChange={foundModelsChangeHandler} onChange={foundModelsChangeHandler}
></IAICheckbox> ></IAICheckbox>
{existingModels.includes(model.location) && ( {existingModels.includes(model.location) && (
<Badge colorScheme="accent">{t('modelManager.modelExists')}</Badge> <Badge colorScheme="accent" paddingX={2} paddingY={1}>
{t('modelManager.modelExists')}
</Badge>
)} )}
</Flex> </Flex>
<Text fontStyle="italic" variant="subtext"> <Text fontStyle="italic" variant="subtext">
@ -215,10 +217,10 @@ export default function SearchModels() {
} }
return ( return (
<> <Flex flexDirection="column" rowGap={4}>
{newFoundModels} {newFoundModels}
{shouldShowExistingModelsInSearch && existingFoundModels} {shouldShowExistingModelsInSearch && existingFoundModels}
</> </Flex>
); );
}; };