Skip to content

Commit

Permalink
Merge pull request #209 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
improve(ui): PageContainer header style without breadcrumb
  • Loading branch information
dengfuping authored Oct 23, 2023
2 parents ff55abd + 1dd40f5 commit 2bf11f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ui/src/PageContainer/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const genPageContainerStyle: GenerateStyle<PageContainerToken> = (
},
},
// 减小内容区左右两侧间距
[`${componentCls}-warp-page-header`]: {
[`${antCls}-page-header`]: {
paddingInlineStart: paddingLG,
paddingInlineEnd: paddingLG,
paddingBlockStart: padding,
Expand All @@ -73,6 +73,12 @@ export const genPageContainerStyle: GenerateStyle<PageContainerToken> = (
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`]: {
Expand Down

0 comments on commit 2bf11f1

Please sign in to comment.