mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: get rid of horizontal scrollbar on narrow screens in CreateProjectDialog (#7198)
This PR hides horizontal overflow in the dialog. The pop-up docs that we have on small windows was causing a tiny bit of overflow, giving us an annoying (and pretty useless) horizontal scrollbar. We can hide that scrollbar by hiding horizontal overflow.
This commit is contained in:
		
							parent
							
								
									0f3d93099d
								
							
						
					
					
						commit
						82d401be1b
					
				| @ -21,7 +21,7 @@ interface ICreateProjectDialogProps { | ||||
|     onClose: () => void; | ||||
| } | ||||
| 
 | ||||
| const StyledDialog = styled(Dialog)(({ theme, maxWidth }) => ({ | ||||
| const StyledDialog = styled(Dialog)(({ theme }) => ({ | ||||
|     '& .MuiDialog-paper': { | ||||
|         borderRadius: theme.shape.borderRadiusLarge, | ||||
|         maxWidth: theme.spacing(170), | ||||
| @ -29,6 +29,9 @@ const StyledDialog = styled(Dialog)(({ theme, maxWidth }) => ({ | ||||
|         backgroundColor: 'transparent', | ||||
|     }, | ||||
|     padding: 0, | ||||
|     '& .MuiPaper-root > section': { | ||||
|         overflowX: 'hidden', | ||||
|     }, | ||||
| })); | ||||
| 
 | ||||
| const CREATE_PROJECT_BTN = 'CREATE_PROJECT_BTN'; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user