Browse Source

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

pull/39930/head
黑雨 2 years ago
committed by yoyo837
parent
commit
689feb8a1a
  1. 1
      components/date-picker/style/index.tsx
  2. 1
      components/input/style/index.tsx

1
components/date-picker/style/index.tsx

@ -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}`,

1
components/input/style/index.tsx

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

Loading…
Cancel
Save