diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less index a9b11458a5db28a73fa36210ad4238a5d14e02be..f1928d4cd9e9656c9d997eaa854fd81eac5d13cc 100644 --- a/src/components/GlobalHeader/index.less +++ b/src/components/GlobalHeader/index.less @@ -8,13 +8,6 @@ position: relative; } -:global { - .ant-layout { - min-height: 100vh; - overflow-x: hidden; - } -} - .logo { height: 64px; line-height: 58px; diff --git a/src/components/SiderMenu/SliderMenu.js b/src/components/SiderMenu/SliderMenu.js index 1f4c03397e860482d4cf2647779f3496787865e5..5bd10b1661e7c2255e93d6f6d61104b544fb4f18 100644 --- a/src/components/SiderMenu/SliderMenu.js +++ b/src/components/SiderMenu/SliderMenu.js @@ -220,7 +220,7 @@ export default class SiderMenu extends PureComponent { }); }; render() { - const { logo, collapsed, onCollapse, theme } = this.props; + const { logo, collapsed, onCollapse, fixSiderbar, theme } = this.props; const { openKeys } = this.state; const defaultProps = collapsed ? {} : { openKeys }; return ( @@ -231,7 +231,9 @@ export default class SiderMenu extends PureComponent { breakpoint="lg" onCollapse={onCollapse} width={256} - className={`${styles.sider} ${theme === 'light' ? styles.light : ''}`} + className={`${styles.sider} ${fixSiderbar ? styles.fixSiderbar : ''} ${ + theme === 'light' ? styles.light : '' + }`} >