Browse Source

样式bug

zhuth 6 years ago
parent
commit
387f06737f
2 changed files with 6 additions and 2 deletions
  1. 3 1
      src/components/admin/admin.less
  2. 3 1
      src/components/authority/index.less

+ 3 - 1
src/components/admin/admin.less

@@ -61,7 +61,9 @@
         padding: 12px;
         padding: 12px;
         border: 1px solid rgba(0,0,0,0.10);
         border: 1px solid rgba(0,0,0,0.10);
         .ant-tabs-tabpane {
         .ant-tabs-tabpane {
-            height: 100%;
+            &.ant-tabs-tabpane-active {
+                height: 100%;
+            }
         }
         }
     }
     }
 }
 }

+ 3 - 1
src/components/authority/index.less

@@ -64,7 +64,9 @@
                 padding: 8px;
                 padding: 8px;
                 border: 1px solid rgba(0,0,0,0.10);
                 border: 1px solid rgba(0,0,0,0.10);
                 >.ant-tabs-tabpane {
                 >.ant-tabs-tabpane {
-                    height: 100%;
+                    &.ant-tabs-tabpane-active {
+                        height: 100%;
+                    }
                     > .menu-list {
                     > .menu-list {
                         height: 100%;
                         height: 100%;
                         display: flex;
                         display: flex;