mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): recommended star stretches tag list layout
This commit is contained in:
committed by
Mary Hipp Rogers
parent
f1889b259d
commit
633b9afa46
@@ -245,18 +245,17 @@ const TagCheckbox = memo(({ tag, ...rest }: CheckboxProps & { tag: { label: stri
|
||||
}
|
||||
|
||||
return (
|
||||
<Checkbox isChecked={isChecked} onChange={onChange} {...rest} flexShrink={0}>
|
||||
<Flex alignItems="center" gap={2}>
|
||||
<Text>{`${tag.label} (${count})`}</Text>
|
||||
{tag.recommended && (
|
||||
<Tooltip label={t('workflows.recommended')}>
|
||||
<Box>
|
||||
<Icon as={PiStarFill} boxSize={4} fill="invokeYellow.500" />
|
||||
</Box>
|
||||
</Tooltip>
|
||||
)}
|
||||
</Flex>
|
||||
</Checkbox>
|
||||
<Flex alignItems="center" gap={2}>
|
||||
<Checkbox isChecked={isChecked} onChange={onChange} {...rest} flexShrink={0} />
|
||||
<Text>{`${tag.label} (${count})`}</Text>
|
||||
{tag.recommended && (
|
||||
<Tooltip label={t('workflows.recommended')}>
|
||||
<Box as="span" lineHeight={0}>
|
||||
<Icon as={PiStarFill} boxSize={4} fill="invokeYellow.500" />
|
||||
</Box>
|
||||
</Tooltip>
|
||||
)}
|
||||
</Flex>
|
||||
);
|
||||
});
|
||||
TagCheckbox.displayName = 'TagCheckbox';
|
||||
|
||||
Reference in New Issue
Block a user