diff --git a/frontend/src/views/Dashboard/Dashboard.css b/frontend/src/views/Dashboard/Dashboard.css index d1bc60b..0d2e990 100644 --- a/frontend/src/views/Dashboard/Dashboard.css +++ b/frontend/src/views/Dashboard/Dashboard.css @@ -171,29 +171,28 @@ h2 { .overview-domain-field strong { font-size: 14px; } -.metrics-grid { +.overview-details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; - margin-bottom: 18px; } -.metric-card, +.overview-detail-card, .panel { border: 1px solid #e2e8f2; border-radius: 20px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 10px 30px rgba(31, 50, 87, 0.04); } -.metric-card { +.overview-detail-card { padding: 22px; } -.metric-card span, +.overview-detail-card span, .domain-row span, .muted { color: #7a879d; font-size: 13px; } -.metric-card strong { +.overview-detail-card strong { display: block; margin-top: 13px; font-size: 28px; @@ -615,7 +614,7 @@ code { .overview-domain-row { grid-template-columns: 1fr; } - .metrics-grid { + .overview-details-grid { grid-template-columns: repeat(2, 1fr); } .operation-columns { diff --git a/frontend/src/views/Dashboard/Dashboard.vue b/frontend/src/views/Dashboard/Dashboard.vue index 2d607f3..72700f5 100644 --- a/frontend/src/views/Dashboard/Dashboard.vue +++ b/frontend/src/views/Dashboard/Dashboard.vue @@ -241,30 +241,29 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi - - -
-
- 服务版本{{ status?.version || "—" }} -
-
- 数据库{{ - displayLabel( - { sqlite: "SQLite", mysql: "MySQL" }, - status?.database_driver, - ) - }} -
-
- HTTPS 模式{{ - displayLabel(httpsModeLabels, status?.https_mode) - }} -
-
- 托管域名{{ domains.length }} -
+
+
+ 服务版本 + {{ status?.version || "—" }} +
+
+ 数据库 + {{ + displayLabel( + { sqlite: "SQLite", mysql: "MySQL" }, + status?.database_driver, + ) + }} +
+
+ HTTPS 模式 + {{ displayLabel(httpsModeLabels, status?.https_mode) }} +
+
+ 托管域名 + {{ domains.length }} 个 +
+
diff --git a/frontend/src/views/Dashboard/DashboardLayout.css b/frontend/src/views/Dashboard/DashboardLayout.css index 649d97c..0a52ee2 100644 --- a/frontend/src/views/Dashboard/DashboardLayout.css +++ b/frontend/src/views/Dashboard/DashboardLayout.css @@ -91,16 +91,16 @@ padding: 24px; } -.overview-section > .metrics-grid { - margin: 0; +.overview-details-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); } -.metric-card { +.overview-detail-card { padding: 16px 18px; border-radius: 14px; } -.metric-card strong { +.overview-detail-card strong { margin-top: 8px; font-size: 20px; overflow-wrap: anywhere; @@ -212,7 +212,7 @@ grid-template-columns: 1fr; } - .metrics-grid { + .overview-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }