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 (
|
return (
|
||||||
<Flex justifyContent="space-between" w="full" alignItems="center">
|
<Flex justifyContent="space-between" flexGrow={1} alignItems="center" gap={2} overflow="hidden">
|
||||||
<Flex gap={2} alignItems="center">
|
<StylePresetImage imageWidth={25} presetImageUrl={activeStylePreset.image} />
|
||||||
<StylePresetImage imageWidth={25} presetImageUrl={activeStylePreset.image} />
|
<Flex flexDir="column" flexGrow={1} overflow="hidden">
|
||||||
<Flex flexDir="column">
|
<Flex>
|
||||||
<Badge colorScheme="invokeBlue" variant="subtle">
|
<Badge colorScheme="invokeBlue" variant="subtle">
|
||||||
{activeStylePreset.name}
|
{activeStylePreset.name}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
@ -34,6 +34,7 @@ export const StylePresetMenuTrigger = () => {
|
|||||||
_hover={_hover}
|
_hover={_hover}
|
||||||
transitionProperty="background-color"
|
transitionProperty="background-color"
|
||||||
transitionDuration="normal"
|
transitionDuration="normal"
|
||||||
|
w="full"
|
||||||
>
|
>
|
||||||
<ActiveStylePreset />
|
<ActiveStylePreset />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user