fix: menu cannot scroll (#1276)
This commit is contained in:
		
							parent
							
								
									a7960422c5
								
							
						
					
					
						commit
						b27e82edf8
					
				@ -315,7 +315,7 @@ const SettingsCenter = (props) => {
 | 
			
		||||
        `}
 | 
			
		||||
        theme={'light'}
 | 
			
		||||
      >
 | 
			
		||||
        <Menu selectedKeys={[pluginName]} style={{ height: 'calc(100vh - 46px)' }}>
 | 
			
		||||
        <Menu selectedKeys={[pluginName]} style={{ height: 'calc(100vh - 46px)', overflowY: 'auto' }}>
 | 
			
		||||
          {Object.keys(items)
 | 
			
		||||
            .sort()
 | 
			
		||||
            .map((key) => {
 | 
			
		||||
 | 
			
		||||
@ -291,6 +291,7 @@ export const Menu: ComposedMenu = observer((props) => {
 | 
			
		||||
                    }}
 | 
			
		||||
                    className={css`
 | 
			
		||||
                      height: 100%;
 | 
			
		||||
                      overflow-y: auto;
 | 
			
		||||
                      .ant-menu-item {
 | 
			
		||||
                        > .ant-menu-title-content {
 | 
			
		||||
                          margin-left: -24px;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user