lxf 5 дней назад
Родитель
Сommit
878a1ed3f3
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      src/views/old_mini/growth_report/index.vue

+ 7 - 2
src/views/old_mini/growth_report/index.vue

@@ -49,7 +49,7 @@
                                         <!-- <badge class="status-badge" dot
                                             :offset="[80, -10]">
                                         </badge> -->
-                                        <div class="status-title">
+                                        <div class="status-title" :class="{ 'status-title-small': (card.title || '').length > 6 }">
                                             {{ card.title }}
                                         </div>
                                         <div class="status-sub">
@@ -76,7 +76,7 @@
                                             :offset="[80, -10]">
                                         </badge> -->
                                         <div v-if="card.executionLimitDays || card.executionLimitDays === 0" class="tag-name" :style="{ borderColor: card.purposeColor, color: card.purposeColor }">限时 {{ card.executionLimitDays }} 天</div>
-                                        <div class="status-title">
+                                        <div class="status-title" :class="{ 'status-title-small': (card.name || '').length > 6 }">
                                             {{ card.name }}
                                         </div>
                                         <div class="status-sub pending-sub" :style="{ color: card.purposeColor === '#FFFFFF' ? '#000' : '#fff' }">
@@ -880,6 +880,11 @@ linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
                     .status-title {
                         font-size: 16px;
                         line-height: 24px;
+
+                        &.status-title-small {
+                            font-size: 13px;
+                            line-height: 18px;
+                        }
                     }
 
                     .status-sub {