Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b7a9a6

Browse files
committed
fix[css]: css bug in mobile PanJiaChen#852
1 parent 89ce53e commit 9b7a9a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/views/layout/Layout.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default {
3333
classObj() {
3434
return {
3535
hideSidebar: !this.sidebar.opened,
36+
openSidebar: this.sidebar.opened,
3637
withoutAnimation: this.sidebar.withoutAnimation,
3738
mobile: this.device === 'mobile'
3839
}
@@ -53,6 +54,10 @@ export default {
5354
position: relative;
5455
height: 100%;
5556
width: 100%;
57+
&.mobile.openSidebar{
58+
position: fixed;
59+
top: 0;
60+
}
5661
}
5762
.drawer-bg {
5863
background: #000;

0 commit comments

Comments
 (0)