feat(theme): §15 隐藏冗余页标题栏(.cxd-Page-header)

顶部多 Tab 已显示页名,页内 .cxd-Page-title 重复、白占 ~45px。
实测页头仅含标题无工具栏 → 整条隐藏;用 :has 保留含 .cxd-Page-toolbar
的页头避免误伤,crud 自带 headerToolbar 不受影响。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-15 17:38:40 +08:00
parent 306f9ebbae
commit 1b011af41b

View File

@@ -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 { .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; 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;
}