浏览代码

fix: GlobalLayout style

kokoroli 6 年之前
父节点
当前提交
2e7907c7eb
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/components/page/GlobalLayout.vue

+ 4 - 5
src/components/page/GlobalLayout.vue

@@ -349,8 +349,8 @@ export default {
             }
 
             .logo.top-nav-header {
+              flex: 0 0 56px;
               text-align: center;
-              width: 56px;
               line-height: 58px;
               h1 {
                 display: none;
@@ -388,7 +388,8 @@ export default {
             }
           }
           .ant-menu.ant-menu-horizontal {
-                max-width: 350px;
+            flex: 1 1;
+            white-space: normal;
           }
         }
       }
@@ -411,8 +412,6 @@ export default {
           border: none;
           height: 64px;
           line-height: 64px;
-          width: 100%;
-          max-width: 700px;
         }
 
         .header-index-left {
@@ -446,7 +445,7 @@ export default {
         }
 
         .header-index-right {
-          float: right;
+          flex: 0 0 198px;
           height: 64px;
           overflow: hidden;
         }