From 611cc271ecfbed97ece3c7e08221b30a3733c6f3 Mon Sep 17 00:00:00 2001 From: wangziqi Date: Fri, 3 Jul 2026 10:02:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BB=BA=E7=AB=8B=E4=B8=89=E6=96=AD?= =?UTF-8?q?=E7=82=B9=20CSS=20=E4=BD=93=E7=B3=BB=EF=BC=8C=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=8D=95=E6=96=AD=E7=82=B9=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/index.css | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/admin/src/index.css b/apps/admin/src/index.css index c922edd..cb4ee26 100644 --- a/apps/admin/src/index.css +++ b/apps/admin/src/index.css @@ -15,8 +15,13 @@ body { min-height: 100vh; } -/* 移动端自适应 */ -@media (max-width: 767px) { +/* === 通用:表格容器横向滚动 === */ +.ant-table-wrapper { + overflow-x: auto; +} + +/* === 手机 (< 576px) === */ +@media (max-width: 575px) { .ant-table { font-size: 13px; } @@ -46,3 +51,10 @@ body { font-size: 12px; } } + +/* === 平板 (576-991px) === */ +@media (min-width: 576px) and (max-width: 991px) { + .ant-modal { + max-width: calc(100vw - 48px) !important; + } +}