mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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 ( |     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 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user