From 2bd38551a4b3f7476102035816ab99b917a87333 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Thu, 1 Oct 2026 14:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E8=A7=88=E9=95=BF=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=92=91=E7=A0=B4=E5=B1=8F=E5=B9=95=E4=BF=AE=E5=A4=8D=EF=BC=9A?= =?UTF-8?q?dash-cols=20=E7=9A=84=20grid=20=E5=AD=90=E9=A1=B9=E5=8A=A0=20mi?= =?UTF-8?q?n-width:0=EF=BC=8C=E9=9D=A2=E6=9D=BF=E5=8F=AF=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=E5=90=8E=E6=A0=87=E9=A2=98=20ellipsis=20=E6=89=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=EF=BC=88375=20=E8=A7=86=E5=8F=A3=20docW=204181?= =?UTF-8?q?=E2=86=92375=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/admin/DashboardView.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/admin/DashboardView.vue b/frontend/src/admin/DashboardView.vue index 3d084b8..f755edf 100644 --- a/frontend/src/admin/DashboardView.vue +++ b/frontend/src/admin/DashboardView.vue @@ -146,6 +146,10 @@ const chartMax = computed(() => { gap: 16px;} .dash-cols.even {grid-template-columns: 1fr 1fr; margin-top: 16px;} +/* grid 子项默认 min-width:auto:标题列表里 white-space:nowrap 的标题会把 + 面板的 min-content 顶到整行宽度,撑破屏幕(375 视口量到 docW 4181)。 + min-width:0 让面板可收缩,.title 的 ellipsis 截断才有机会生效。 */ +.dash-cols > .panel {min-width: 0;} @media (max-width: 720px) { .dash-cols, .dash-cols.even {grid-template-columns: 1fr;}