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:
parent
0b91e60f8a
commit
2c7a654860
@ -399,6 +399,10 @@ export const TableSelect: FC<TableSelectProps> = ({
|
||||
}
|
||||
};
|
||||
|
||||
const ButtonLabel = styled('span')(() => ({
|
||||
width: button.labelWidth || 'unset',
|
||||
}));
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box ref={ref}>
|
||||
@ -411,7 +415,7 @@ export const TableSelect: FC<TableSelectProps> = ({
|
||||
}}
|
||||
disabled={disabled}
|
||||
>
|
||||
{button.label}
|
||||
<ButtonLabel>{button.label}</ButtonLabel>
|
||||
</Button>
|
||||
</Box>
|
||||
<StyledPopover
|
||||
|
Loading…
Reference in New Issue
Block a user