Browse Source

fix #2175 the Siderbar padding error on the mobile with fixSiderbar=true

pull/2200/head
杨加莹 8 years ago
committed by 陈帅
parent
commit
62ab8b47c6
  1. 3
      src/layouts/BasicLayout.js

3
src/layouts/BasicLayout.js

@ -175,8 +175,9 @@ class BasicLayout extends React.PureComponent {
};
getLayoutStyle = () => {
const { isMobile } = this.state;
const { fixSiderbar, collapsed, layout } = this.props;
if (fixSiderbar && layout !== 'topmenu') {
if (fixSiderbar && layout !== 'topmenu' && !isMobile) {
return {
paddingLeft: collapsed ? '80px' : '256px',
};

Loading…
Cancel
Save