fix(ui): recommended star stretches tag list layout

This commit is contained in:
psychedelicious
2025-03-20 14:42:44 +10:00
committed by Mary Hipp Rogers
parent f1889b259d
commit 633b9afa46

View File

@@ -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';