style: fix input addon misplace when zoom up (#39842)

This commit is contained in:
黑雨 2022-12-28 18:12:16 +08:00 committed by yoyo837
parent 45dcbd50f4
commit 689feb8a1a
2 changed files with 2 additions and 0 deletions

View File

@ -969,6 +969,7 @@ const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
display: 'inline-flex',
alignItems: 'center',
background: colorBgContainer,
lineHeight: 1,
border: `${lineWidth}px ${lineType} ${colorBorder}`,
borderRadius,
transition: `border ${motionDurationMid}, box-shadow ${motionDurationMid}`,

View File

@ -274,6 +274,7 @@ export const genInputGroupStyle = (token: InputToken): CSSObject => {
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
borderRadius: token.borderRadius,
transition: `all ${token.motionDurationSlow}`,
lineHeight: 1,
// Reset Select's style in addon
[`${antCls}-select`]: {