Skip to content

Commit

Permalink
fix: Select multiple padding (#46427)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed Dec 13, 2023
1 parent b777d1c commit b3b5df4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/select/style/multiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
alignItems: 'center',
height: '100%',
// Multiple is little different that horizontal is follow the vertical
padding: `${unit(token.calc(selectItemDist).sub(FIXED_ITEM_MARGIN).equal())} ${unit(
token.calc(FIXED_ITEM_MARGIN).mul(2).equal(),
)}`,
paddingInline: token.calc(FIXED_ITEM_MARGIN).mul(2).equal(),
paddingBlock: token.calc(selectItemDist).sub(FIXED_ITEM_MARGIN).equal(),
borderRadius: token.borderRadius,

[`${componentCls}-show-search&`]: {
Expand Down

0 comments on commit b3b5df4

Please sign in to comment.