diff --git a/src/views/PlatformData/UserOverview.vue b/src/views/PlatformData/UserOverview.vue index 45fbb35..a7a8c3a 100644 --- a/src/views/PlatformData/UserOverview.vue +++ b/src/views/PlatformData/UserOverview.vue @@ -25,9 +25,11 @@
用户总数
-
154,838
-
- 较昨日增加↑ 5.22% +
+
154,838
+
+ 较昨日增加↑ 5.22% +
@@ -420,9 +422,17 @@ onMounted(() => { .card-value { font-size: 64px; font-weight: bold; - margin: auto 0; /* 垂直居中剩余空间 */ + margin: 0; text-align: center; } +.big-card-content { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + gap: 10px; /* 数字和百分比之间的间距 */ +} .card-value-small { font-size: 48px; font-weight: bold; @@ -440,11 +450,10 @@ onMounted(() => { } .card-tag { background-color: #fff; - padding: 4px 12px; + padding: 8px 16px; /* 增加高度 */ border-radius: 4px; font-weight: bold; display: inline-block; - margin: 0 auto; /* Center for big card */ } .big-card .card-tag { font-size: 18px; @@ -468,7 +477,8 @@ onMounted(() => { } .section-header { color: #fff; - font-size: 20px; + font-size: 24px; + font-weight: bold; margin-bottom: 15px; display: flex; align-items: center;