Merge pull request #886 from Louis-7/bugfix/sidebar-shake

Bugfix/sidebar shake
This commit is contained in:
Baorong Li
2018-09-03 15:11:15 +08:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -103,6 +103,14 @@
}
}
.sidemenu {
:global{
.ant-menu-item {
width: 100%;
}
}
}
.switchtheme {
width: 100%;
position: absolute;
+2
View File
@@ -4,6 +4,7 @@ import { Menu, Icon } from 'antd'
import { Link } from 'react-router-dom'
import { arrayToTree, queryArray } from 'utils'
import pathToRegexp from 'path-to-regexp'
import styles from './Layout.less'
const { SubMenu } = Menu
let openKeysFlag = false
@@ -123,6 +124,7 @@ const Menus = ({
mode={siderFold ? 'vertical' : 'inline'}
theme={darkTheme ? 'dark' : 'light'}
selectedKeys={defaultSelectedKeys}
className={styles.sidemenu}
>
{menuItems}
</Menu>