From c4f7573653d8082980c35ad4de988d93c0a46602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=91=98?= Date: Wed, 26 Aug 2026 16:14:37 +0000 Subject: [PATCH] =?UTF-8?q?HEL-162:=20=E4=BF=AE=E5=A4=8D=E5=AE=BD=E5=B1=8F?= =?UTF-8?q?=E4=B8=BB=E4=BB=8E=E5=88=97=E8=A1=A8=E6=97=A0=E6=B3=95=E5=86=85?= =?UTF-8?q?=E9=83=A8=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为 .dash-master-split 增加 grid-template-rows: minmax(0,1fr),使 max-height 真正约束行高,左侧 7 家公司可滚可选;顺手删除无调用的 statusPill。 Co-authored-by: Cursor Co-authored-by: multica-agent --- web/admin.html | 4 ++-- web/app.js | 11 ----------- web/design-system.css | 5 +++++ 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/web/admin.html b/web/admin.html index 854d467..389d723 100644 --- a/web/admin.html +++ b/web/admin.html @@ -5,7 +5,7 @@ 管理端 · 金牛集团 - + @@ -942,6 +942,6 @@
- + diff --git a/web/app.js b/web/app.js index cefa640..5aae126 100644 --- a/web/app.js +++ b/web/app.js @@ -1145,17 +1145,6 @@ function netClass(value) { return ""; } -function statusPill(label) { - if (!label || label === "—") return ''; - const map = { - "已完成": "pill-success", - "流水待补": "pill-warn", - "确认中": "pill-warn", - "未提交": "pill-danger", - }; - return `${label}`; -} - function updateDashAuditCard(audit) { applyAuditCounts(audit, { fromApi: true }); } diff --git a/web/design-system.css b/web/design-system.css index f219049..9ffbd64 100644 --- a/web/design-system.css +++ b/web/design-system.css @@ -250,6 +250,9 @@ p { margin: 0; } gap: 0; /* 少数据自适应;整卡(含共享头)目标约 340px;多数据模块内滚动 */ max-height: 300px; + /* max-height alone 无法约束隐式行高;补可收缩行后 pane 内 overflow:auto 才会生效 */ + grid-template-rows: minmax(0, 1fr); + overflow: hidden; } .dash-master-pane { display: flex; @@ -450,6 +453,8 @@ p { margin: 0; } .grid-3, .grid-2-1, .grid-1-2, .grid-3-2, .grid-480-1 { grid-template-columns: minmax(0, 1fr); } .dash-master-split { max-height: none; + grid-template-rows: none; + overflow: visible; } .dash-master-pane--list { border-right: 0;