Skip to content

Commit

Permalink
improve(ui): Remove PageContainer header paddingBlockStart
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Nov 10, 2024
1 parent 5f71354 commit 4246ab6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/ui/src/PageContainer/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export const genPageContainerStyle: GenerateStyle<PageContainerToken> = (
// overwritten pro-components style
paddingBlockStart: 0,
},
// remove paddingBlockStart for page header
[`${antCls}-page-header-heading`]: {
paddingBlockStart: 0,
},
[`${antCls}-page-header-heading-title`]: {
fontSize: fontSizeHeading3,
marginInlineEnd: token.marginXS,
Expand Down Expand Up @@ -68,12 +72,6 @@ export const genPageContainerStyle: GenerateStyle<PageContainerToken> = (
marginTop: -padding,
},
},
// 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`]: {
Expand Down

0 comments on commit 4246ab6

Please sign in to comment.