Skip to content

Commit

Permalink
fix: improve inner pagination padding (#47231)
Browse files Browse the repository at this point in the history
* fix: improve inner pagination padding

* Update index.ts

* Update index.ts

* Update index.ts

* Update index.ts

---------

Co-authored-by: vagusX <vagusxl@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
  • Loading branch information
3 people committed Feb 2, 2024
1 parent c21e948 commit 82b1f77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/transfer/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface TransferToken extends FullToken<'Transfer'> {
const genTransferCustomizeStyle: GenerateStyle<TransferToken> = (
token: TransferToken,
): CSSObject => {
const { antCls, componentCls, listHeight, controlHeightLG, marginXXS, margin } = token;
const { antCls, componentCls, listHeight, controlHeightLG } = token;

const tableCls = `${antCls}-table`;
const inputCls = `${antCls}-input`;
Expand All @@ -70,7 +70,8 @@ const genTransferCustomizeStyle: GenerateStyle<TransferToken> = (
},

[`${tableCls}-pagination${tableCls}-pagination`]: {
margin: `${unit(margin)} 0 ${unit(marginXXS)}`,
margin: 0,
padding: token.paddingXS,
},
},

Expand Down Expand Up @@ -285,7 +286,7 @@ const genTransferListStyle: GenerateStyle<TransferToken> = (token: TransferToken
},

'&-pagination': {
padding: `${unit(token.paddingXS)} 0`,
padding: token.paddingXS,
textAlign: 'end',
borderTop: `${unit(lineWidth)} ${lineType} ${colorSplit}`,

Expand Down

0 comments on commit 82b1f77

Please sign in to comment.