diff --git a/packages/ui/src/PageContainer/style/index.ts b/packages/ui/src/PageContainer/style/index.ts index 8e03cf5cb..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, @@ -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`]: {