Bladeren bron

fix:top menu style #137

kokoroli 6 jaren geleden
bovenliggende
commit
b29f9c4ec1
1 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 6 3
      src/components/global.less

+ 6 - 3
src/components/global.less

@@ -229,7 +229,7 @@ body {
           }
         }
         .ant-menu.ant-menu-horizontal {
-          flex: 1 1;
+          flex: 0 1 auto;
           white-space: normal;
         }
       }
@@ -250,16 +250,19 @@ body {
       height: 64px;
 
       .ant-menu.ant-menu-horizontal {
+        max-width: 835px;
+        flex: 0 1 835px;
         border: none;
         height: 64px;
         line-height: 64px;
       }
 
       .header-index-left {
-        flex: 1 1;
+        flex: 0 1 1000px;
         display: flex;
 
         .logo.top-nav-header {
+          flex: 0 0 165px;
           width: 165px;
           height: 64px;
           position: relative;
@@ -286,7 +289,7 @@ body {
       }
 
       .header-index-right {
-        flex: 0 0 auto;
+        flex: 1 0 auto;
         height: 64px;
         overflow: hidden;
       }