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;