Skip to content

Commit 4732358

Browse files
committed
fix: #54 , #55 fixedHeader mode paddingLeft error
1 parent 8ca1ae8 commit 4732358

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/components/page/GlobalLayout.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,6 @@
181181
min-width: 800px;
182182
}
183183
}
184-
.sidemenu {
185-
.ant-header-fixedHeader {
186-
187-
&.ant-header-side-opened, &.ant-header-side-closed {
188-
width: 100%
189-
}
190-
}
191-
}
192-
193184
.topmenu {
194185
/* 必须为 topmenu 才能启用流式布局 */
195186
&.content-width-Fluid {
@@ -200,6 +191,17 @@
200191
}
201192
}
202193
194+
&.mobile {
195+
.sidemenu {
196+
.ant-header-fixedHeader {
197+
198+
&.ant-header-side-opened, &.ant-header-side-closed {
199+
width: 100%
200+
}
201+
}
202+
}
203+
}
204+
203205
&.ant-layout-has-sider {
204206
flex-direction: row;
205207
}

0 commit comments

Comments
 (0)