fix: Select multiple padding (#46427)

This commit is contained in:
MadCcc 2023-12-13 17:31:36 +08:00 committed by GitHub
parent b777d1c0c6
commit b3b5df442c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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&`]: {