mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: improve menu styling (#7513)
Now quick suggestions padding is not bigger than for pages. 
This commit is contained in:
		
							parent
							
								
									4eebf49423
								
							
						
					
					
						commit
						745c5a0454
					
				| @ -75,15 +75,7 @@ export const CommandPageSuggestions = ({ | ||||
|                     }} | ||||
|                     sx={listItemButtonStyle} | ||||
|                 > | ||||
|                     <StyledListItemIcon | ||||
|                         sx={(theme) => ({ | ||||
|                             fontSize: theme.fontSizes.smallBody, | ||||
|                             minWidth: theme.spacing(0.5), | ||||
|                             margin: theme.spacing(0, 1, 0, 0), | ||||
|                         })} | ||||
|                     > | ||||
|                         {item.icon} | ||||
|                     </StyledListItemIcon> | ||||
|                     <StyledListItemIcon>{item.icon}</StyledListItemIcon> | ||||
|                     <StyledListItemText> | ||||
|                         <StyledButtonTypography color='textPrimary'> | ||||
|                             {item.name} | ||||
|  | ||||
| @ -49,13 +49,7 @@ export const CommandPages = ({ | ||||
|                     }} | ||||
|                     sx={listItemButtonStyle} | ||||
|                 > | ||||
|                     <StyledListItemIcon | ||||
|                         sx={(theme) => ({ | ||||
|                             fontSize: theme.fontSizes.smallBody, | ||||
|                             minWidth: theme.spacing(0.5), | ||||
|                             margin: theme.spacing(0, 1, 0, 0), | ||||
|                         })} | ||||
|                     > | ||||
|                     <StyledListItemIcon> | ||||
|                         <IconRenderer path={item.link} /> | ||||
|                     </StyledListItemIcon> | ||||
|                     <StyledListItemText> | ||||
|  | ||||
| @ -4,7 +4,6 @@ import { | ||||
|     RecentlyVisitedPathButton, | ||||
|     RecentlyVisitedProjectButton, | ||||
| } from './RecentlyVisited/CommandResultGroup'; | ||||
| import { List } from '@mui/material'; | ||||
| import { | ||||
|     useRecentlyVisited, | ||||
|     type LastViewedPage, | ||||
| @ -57,7 +56,7 @@ export const CommandRecent = ({ | ||||
|             groupName='Quick suggestions' | ||||
|             onClick={onClick} | ||||
|         > | ||||
|             <List>{buttons}</List> | ||||
|             {buttons} | ||||
|         </CommandResultGroup> | ||||
|     ); | ||||
| }; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user