Skip to content

Commit

Permalink
style: fix input addon misplace when zoom up (#39842)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyu4585 committed Dec 28, 2022
1 parent 4f35779 commit bc0930f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/date-picker/style/index.tsx
Expand Up @@ -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}`,
Expand Down
1 change: 1 addition & 0 deletions components/input/style/index.tsx
Expand Up @@ -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`]: {
Expand Down

0 comments on commit bc0930f

Please sign in to comment.