1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: use a fixed-width button label for CR selector in new project creation form (#7179)

This change makes the button label for the CR selector in the new
project creation form have a fixed width. It adds a missing wrapper
element.
This commit is contained in:
Thomas Heartman 2024-05-28 09:48:30 +02:00 committed by GitHub
parent 0b91e60f8a
commit 2c7a654860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -399,6 +399,10 @@ export const TableSelect: FC<TableSelectProps> = ({
} }
}; };
const ButtonLabel = styled('span')(() => ({
width: button.labelWidth || 'unset',
}));
return ( return (
<> <>
<Box ref={ref}> <Box ref={ref}>
@ -411,7 +415,7 @@ export const TableSelect: FC<TableSelectProps> = ({
}} }}
disabled={disabled} disabled={disabled}
> >
{button.label} <ButtonLabel>{button.label}</ButtonLabel>
</Button> </Button>
</Box> </Box>
<StyledPopover <StyledPopover