Skip to content

Commit c904dd4

Browse files
committed
fix:css
1 parent 78cdb2b commit c904dd4

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

apps/nuxt/app/pages/(words)/words.vue

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -646,23 +646,17 @@ onUnmounted(() => {
646646
<div class="flex-1 flex flex-col gap-3 min-w-0">
647647
<div class="title">统计</div>
648648
<div class="flex flex-col sm:flex-row gap-3 items-center w-full">
649-
<div
650-
class="w-full sm:flex-1 rounded-xl p-4 box-border relative bg-[var(--bg-history)] border border-gray-200"
651-
>
652-
<div class="text-[#409eff] text-xl font-bold">{{ todayTotalSpend }}</div>
653-
<div class="text-gray-500">{{ $t('today_study_time') }}</div>
649+
<div class="stat2">
650+
<div class="num">{{ todayTotalSpend }}</div>
651+
<div class="txt">{{ $t('today_study_time') }}</div>
654652
</div>
655-
<div
656-
class="w-full sm:flex-1 rounded-xl p-4 box-border relative bg-[var(--bg-history)] border border-gray-200"
657-
>
658-
<div class="text-[#409eff] text-xl font-bold">{{ totalDay }}</div>
659-
<div class="text-gray-500">{{ $t('total_study_days') }}</div>
653+
<div class="stat2">
654+
<div class="num">{{ totalDay }}</div>
655+
<div class="txt">{{ $t('total_study_days') }}</div>
660656
</div>
661-
<div
662-
class="w-full sm:flex-1 rounded-xl p-4 box-border relative bg-[var(--bg-history)] border border-gray-200"
663-
>
664-
<div class="text-[#409eff] text-xl font-bold">{{ totalSpend }}</div>
665-
<div class="text-gray-500">{{ $t('total_study_time') }}</div>
657+
<div class="stat2">
658+
<div class="num">{{ totalSpend }}</div>
659+
<div class="txt">{{ $t('total_study_time') }}</div>
666660
</div>
667661
</div>
668662
</div>
@@ -782,4 +776,13 @@ onUnmounted(() => {
782776
@apply color-gray-500;
783777
}
784778
}
779+
780+
.stat2 {
781+
@extend .stat;
782+
@apply py-4 flex-1;
783+
width: unset;
784+
.num {
785+
@apply text-2xl break-keep;
786+
}
787+
}
785788
</style>

0 commit comments

Comments
 (0)