Skip to content

Commit b29f9c4

Browse files
committed
fix:top menu style #137
1 parent 5549d2d commit b29f9c4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/global.less

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ body {
229229
}
230230
}
231231
.ant-menu.ant-menu-horizontal {
232-
flex: 1 1;
232+
flex: 0 1 auto;
233233
white-space: normal;
234234
}
235235
}
@@ -250,16 +250,19 @@ body {
250250
height: 64px;
251251

252252
.ant-menu.ant-menu-horizontal {
253+
max-width: 835px;
254+
flex: 0 1 835px;
253255
border: none;
254256
height: 64px;
255257
line-height: 64px;
256258
}
257259

258260
.header-index-left {
259-
flex: 1 1;
261+
flex: 0 1 1000px;
260262
display: flex;
261263

262264
.logo.top-nav-header {
265+
flex: 0 0 165px;
263266
width: 165px;
264267
height: 64px;
265268
position: relative;
@@ -286,7 +289,7 @@ body {
286289
}
287290

288291
.header-index-right {
289-
flex: 0 0 auto;
292+
flex: 1 0 auto;
290293
height: 64px;
291294
overflow: hidden;
292295
}

0 commit comments

Comments
 (0)