From 1b011af41bc681b78c46eb8bb10d6620415335c6 Mon Sep 17 00:00:00 2001 From: zhengwr Date: Mon, 15 Jun 2026 17:38:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(theme):=20=C2=A715=20=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=86=97=E4=BD=99=E9=A1=B5=E6=A0=87=E9=A2=98=E6=A0=8F(.cxd-Pag?= =?UTF-8?q?e-header)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 顶部多 Tab 已显示页名,页内 .cxd-Page-title 重复、白占 ~45px。 实测页头仅含标题无工具栏 → 整条隐藏;用 :has 保留含 .cxd-Page-toolbar 的页头避免误伤,crud 自带 headerToolbar 不受影响。 Co-Authored-By: Claude Opus 4.8 (1M context) --- src/shell/amis-theme.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/shell/amis-theme.css b/src/shell/amis-theme.css index c823f2b..b4c0d22 100644 --- a/src/shell/amis-theme.css +++ b/src/shell/amis-theme.css @@ -460,3 +460,13 @@ .amis-scope .cxd-Form-item.is-required:not(:has(.cxd-Form-value input, .cxd-Form-value textarea, .cxd-Form-value .cxd-Select)) .cxd-Form-star { display: none; } + +/* ============================================================================ + 15. 隐藏冗余的页标题栏 — 2026-06-15 + 顶部多 Tab 已显示页名,页内 .cxd-Page-title 重复、白占 ~45px 垂直空间(ERP 该省)。 + 实测页头(.cxd-Page-header)仅含标题、无工具栏 → 整条隐藏;用 :has 保留少数含 + .cxd-Page-toolbar(页级操作)的页头,避免误伤。crud 自带 headerToolbar 不受影响。 + ============================================================================ */ +.amis-scope .cxd-Page-header:not(:has(.cxd-Page-toolbar)) { + display: none; +}