Commit 62ab8b47 authored by 杨加莹's avatar 杨加莹 Committed by 陈帅

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

parent a29ef6b3
......@@ -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',
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment