From f305ae4262b2e8671c873ae90f2aa990e45de8b1 Mon Sep 17 00:00:00 2001 From: seaislee1209 Date: Thu, 19 Mar 2026 16:05:30 +0800 Subject: [PATCH] fix: responsive layout + UI polish for all pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace fixed-width table columns with min-width + table-layout="auto" so tables stretch to fill available space instead of squeezing left - Condense 6 action buttons into "划拨" + "更多" dropdown menu - Add responsive grid columns for dashboard stats (xl:6 → xs:24) - Unify page headers with .page-header CSS class - Add global .el-table width:100% fix - Consistent number formatting with toLocaleString() - Clean up redundant style attributes Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/style.css | 32 +++++++++++++ frontend/src/views/alerts/AlertList.vue | 20 ++++---- frontend/src/views/billing/BillingView.vue | 28 +++++------ .../src/views/dashboard/DashboardView.vue | 34 ++++++++------ frontend/src/views/iam/IAMUserList.vue | 47 ++++++++++++------- frontend/src/views/settings/SettingsView.vue | 4 +- 6 files changed, 109 insertions(+), 56 deletions(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index fadb5b7..fc372dc 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -14,3 +14,35 @@ body { width: 100%; min-height: 100vh; } + +/* Element Plus table full-width fix */ +.el-table { + width: 100% !important; +} + +.el-card { + width: 100%; +} + +/* Page title bar */ +.page-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; + flex-wrap: wrap; + gap: 12px; +} + +.page-header h2 { + margin: 0; + font-size: 20px; + font-weight: 600; + color: #1d1e2c; +} + +.page-header .actions { + display: flex; + gap: 8px; + flex-wrap: wrap; +} diff --git a/frontend/src/views/alerts/AlertList.vue b/frontend/src/views/alerts/AlertList.vue index d2e7ae0..aa7d3e8 100644 --- a/frontend/src/views/alerts/AlertList.vue +++ b/frontend/src/views/alerts/AlertList.vue @@ -1,6 +1,8 @@