Commit 2ddf9e9d by sendya

fix: display problem in sidebar mobile mode

parent 36161d6d
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</a-drawer> </a-drawer>
</template> </template>
<a-layout :class="[layoutMode]" :style="{ paddingLeft: fixedSideMenu ? `${sidebarOpened ? 256 : 80}px` : '0' }"> <a-layout :class="[layoutMode]" :style="{ paddingLeft: fixedSideMenu && device === 'desktop' ? `${sidebarOpened ? 256 : 80}px` : '0' }">
<!-- layout header --> <!-- layout header -->
<global-header :mode="layoutMode" :theme="theme" :collapsed="collapsed" :device="device" @toggle="toggle"/> <global-header :mode="layoutMode" :theme="theme" :collapsed="collapsed" :device="device" @toggle="toggle"/>
...@@ -149,8 +149,14 @@ ...@@ -149,8 +149,14 @@
overflow-y: auto; overflow-y: auto;
} }
} }
.sidemenu {
.ant-header-fixedHeader {
&.ant-header-side-opened, &.ant-header-side-closed {
width: 100%
}
}
}
} }
......
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