mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): handle badge styling when template name is long
This commit is contained in:
parent
a6f6d5c400
commit
36a1d39454
@ -69,10 +69,10 @@ export const ActiveStylePreset = () => {
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Flex justifyContent="space-between" w="full" alignItems="center">
|
||||
<Flex gap={2} alignItems="center">
|
||||
<StylePresetImage imageWidth={25} presetImageUrl={activeStylePreset.image} />
|
||||
<Flex flexDir="column">
|
||||
<Flex justifyContent="space-between" flexGrow={1} alignItems="center" gap={2} overflow="hidden">
|
||||
<StylePresetImage imageWidth={25} presetImageUrl={activeStylePreset.image} />
|
||||
<Flex flexDir="column" flexGrow={1} overflow="hidden">
|
||||
<Flex>
|
||||
<Badge colorScheme="invokeBlue" variant="subtle">
|
||||
{activeStylePreset.name}
|
||||
</Badge>
|
||||
|
@ -34,6 +34,7 @@ export const StylePresetMenuTrigger = () => {
|
||||
_hover={_hover}
|
||||
transitionProperty="background-color"
|
||||
transitionDuration="normal"
|
||||
w="full"
|
||||
>
|
||||
<ActiveStylePreset />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user