mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
fix: Select multiple padding (#46427)
This commit is contained in:
parent
b777d1c0c6
commit
b3b5df442c
@ -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&`]: {
|
||||
|
Loading…
Reference in New Issue
Block a user