Skip to content

Commit

Permalink
fix(ui): PageContainer header related style should work
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Oct 31, 2023
1 parent 18b4fb5 commit afc9721
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/ui/src/PageContainer/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export const genPageContainerStyle: GenerateStyle<PageContainerToken> = (
minHeight: 'auto',
},
[`${antCls}-page-header`]: {
// 减小内容区左右两侧间距
paddingInlineStart: paddingLG,
paddingInlineEnd: paddingLG,
paddingBlockStart: padding,
paddingBlockEnd: padding,
[`${antCls}-page-header-breadcrumb`]: {
// overwritten pro-components style
paddingBlockStart: 0,
Expand Down Expand Up @@ -61,13 +66,6 @@ export const genPageContainerStyle: GenerateStyle<PageContainerToken> = (
marginBlockStart: 0,
},
},
// 减小内容区左右两侧间距
[`${antCls}-page-header`]: {
paddingInlineStart: paddingLG,
paddingInlineEnd: paddingLG,
paddingBlockStart: padding,
paddingBlockEnd: padding,
},
[`${componentCls}-children-container`]: {
paddingInline: paddingLG,
paddingBlockStart: 0,
Expand Down

0 comments on commit afc9721

Please sign in to comment.