From ff4bc01e07cc333d507dd0664d78f253eec82ed1 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Mon, 23 Oct 2023 18:14:46 +0800 Subject: [PATCH 1/2] improve(ui): Remove paddingBlockStart for PageContainer header without breadcrumb --- packages/ui/src/PageContainer/style/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/ui/src/PageContainer/style/index.ts b/packages/ui/src/PageContainer/style/index.ts index 8e03cf5cb..49901720a 100644 --- a/packages/ui/src/PageContainer/style/index.ts +++ b/packages/ui/src/PageContainer/style/index.ts @@ -73,6 +73,12 @@ export const genPageContainerStyle: GenerateStyle = ( paddingBlockStart: 0, paddingBlockEnd: paddingLG, }, + // remove paddingBlockStart for page header without breadcrumb + [`${antCls}-page-header:not(${antCls}-page-header-has-breadcrumb)`]: { + [`${antCls}-page-header-heading`]: { + paddingBlockStart: 0, + }, + }, }, [`${componentCls}-no-page-header`]: { [`${componentCls}-children-container`]: { From 1dd40f58b81d97b6b1348243e262bfabeb3425bf Mon Sep 17 00:00:00 2001 From: dengfuping Date: Mon, 23 Oct 2023 20:43:40 +0800 Subject: [PATCH 2/2] fix(ui): `${componentCls}-warp-page-header` => `${antCls}-page-header` for overwritten PageContainer style --- packages/ui/src/PageContainer/style/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/PageContainer/style/index.ts b/packages/ui/src/PageContainer/style/index.ts index 49901720a..dfebbcce7 100644 --- a/packages/ui/src/PageContainer/style/index.ts +++ b/packages/ui/src/PageContainer/style/index.ts @@ -62,7 +62,7 @@ export const genPageContainerStyle: GenerateStyle = ( }, }, // 减小内容区左右两侧间距 - [`${componentCls}-warp-page-header`]: { + [`${antCls}-page-header`]: { paddingInlineStart: paddingLG, paddingInlineEnd: paddingLG, paddingBlockStart: padding,