From c7f879a0cfeee4e2ee60ad4ede5c9d05ed4ebc99 Mon Sep 17 00:00:00 2001 From: txai-dev Date: Sun, 13 Sep 2026 18:40:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=A1=A8=E6=A0=BC=E7=BB=99=E8=B6=B3?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=B7=A6=E5=8F=B3=E6=BB=91=E5=8A=A8?= =?UTF-8?q?=EF=BC=88=E5=88=97=E4=B8=8D=E5=86=8D=E6=8C=A4=E5=8E=8B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/App.vue | 8 +++++++- admin/src/views/Dashboard.vue | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/admin/src/App.vue b/admin/src/App.vue index 3c36c9a..35ce13f 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -98,4 +98,10 @@ body { margin: 0; font-family: -apple-system, 'PingFang SC', sans-serif; backgro .content { padding: 12px; min-width: 0; overflow-x: hidden; } } - \ No newline at end of file + + diff --git a/admin/src/views/Dashboard.vue b/admin/src/views/Dashboard.vue index a29a3e1..b6dd4a6 100644 --- a/admin/src/views/Dashboard.vue +++ b/admin/src/views/Dashboard.vue @@ -67,6 +67,10 @@ onMounted(async () => { .row { display: grid; grid-template-columns: 300px 1fr; gap: 12px; min-width: 0; } @media (max-width: 900px) { .row { grid-template-columns: 1fr; } } .panel { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); min-width: 0; overflow-x: auto; } +/* 移动端:固定列宽表格给足最小总宽,交给 el-table 内部横向滑动,避免列被挤压 */ +.panel :deep(.el-table) { width: 100%; } +.panel :deep(.el-table__inner-wrapper) { overflow-x: auto; } +.panel :deep(.el-table table) { min-width: 620px; } .panel h3 { margin: 0 0 12px; font-size: 14px; color: #1f2333; } .bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .bar-name { width: 64px; font-size: 12px; color: #6b7080; flex-shrink: 0; }