From 224eac00480a7578a1067af05a6b2f6761092d79 Mon Sep 17 00:00:00 2001 From: kplam Date: Tue, 4 Aug 2026 18:05:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A6=82=E8=A7=88=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E5=8D=95=E8=A1=8C=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=EF=BC=8C=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6=E5=90=8E=E6=A8=AA?= =?UTF-8?q?=E5=90=91=E6=BB=9A=E5=8A=A8(=E9=9A=90=E8=97=8F=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Overview.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/Overview.vue b/frontend/src/views/Overview.vue index 00b74e4..00fd263 100644 --- a/frontend/src/views/Overview.vue +++ b/frontend/src/views/Overview.vue @@ -307,15 +307,24 @@ onMounted(() => { margin-bottom: 16px; } -/* 概览统计(Statistic 卡片) */ +/* 概览统计(Statistic 卡片,单行自适应 + 无滚动条横向滚动) */ .overview__stats { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + display: flex; + flex-wrap: nowrap; gap: 16px; margin-bottom: 28px; + overflow-x: auto; + scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; /* IE/Edge */ +} + +.overview__stats::-webkit-scrollbar { + display: none; } .overview__stat-card { + flex: 1 1 0; + min-width: 160px; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px;