mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
style: fix input addon misplace when zoom up (#39842)
This commit is contained in:
parent
4f3577976c
commit
bc0930fc57
@ -969,6 +969,7 @@ const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
|
|||||||
display: 'inline-flex',
|
display: 'inline-flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
background: colorBgContainer,
|
background: colorBgContainer,
|
||||||
|
lineHeight: 1,
|
||||||
border: `${lineWidth}px ${lineType} ${colorBorder}`,
|
border: `${lineWidth}px ${lineType} ${colorBorder}`,
|
||||||
borderRadius,
|
borderRadius,
|
||||||
transition: `border ${motionDurationMid}, box-shadow ${motionDurationMid}`,
|
transition: `border ${motionDurationMid}, box-shadow ${motionDurationMid}`,
|
||||||
|
@ -274,6 +274,7 @@ export const genInputGroupStyle = (token: InputToken): CSSObject => {
|
|||||||
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
||||||
borderRadius: token.borderRadius,
|
borderRadius: token.borderRadius,
|
||||||
transition: `all ${token.motionDurationSlow}`,
|
transition: `all ${token.motionDurationSlow}`,
|
||||||
|
lineHeight: 1,
|
||||||
|
|
||||||
// Reset Select's style in addon
|
// Reset Select's style in addon
|
||||||
[`${antCls}-select`]: {
|
[`${antCls}-select`]: {
|
||||||
|
Loading…
Reference in New Issue
Block a user