Browse Source

首页组件高度优化

DESKTOP-6LTVLN7\Liumouren 2 years ago
parent
commit
e224403feb
2 changed files with 3 additions and 10 deletions
  1. 1 1
      src/components/common/ChartCard.vue
  2. 2 9
      src/components/common/TagTableCard.vue

+ 1 - 1
src/components/common/ChartCard.vue

@@ -9,7 +9,7 @@
         <div class="chartTitleBorder"></div>
       </div>
     </div>
-    <div style="height: 87px">
+    <div style="height: 75px">
       <!-- 需要重写 -->
       <LineChart :categoryData="['2020年', '2021年', '2022年']" :valueData="[1024, 1026, 1025]" />
     </div>

+ 2 - 9
src/components/common/TagTableCard.vue

@@ -84,16 +84,9 @@ export default {
   align-items: center;
   justify-content: space-between;
   flex-wrap: nowrap;
-  .card:nth-child(1) {
-    width: calc(100% - 20px);
-    height: 50px;
-    padding: 10px;
-    margin: 5px 10px;
-    background-color: #00aaff32;
-  }
-  .card:nth-child(2) {
+  .card {
     width: calc(100% - 20px);
-    height: 50px;
+    height: 57px;
     padding: 10px;
     margin: 5px 10px;
     background-color: #00aaff32;