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;}