Browse Source

🐛 fix Input.Group 1px bug in vertical layout form (#20685)

close #20616
pull/20717/head
偏右 5 years ago
committed by GitHub
parent
commit
c6eafe8380
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      components/form/style/index.less

11
components/form/style/index.less

@ -262,11 +262,18 @@ form {
// fix input with addon position. https://github.com/ant-design/ant-design/issues/8243
:not(.@{ant-prefix}-input-group-wrapper) > .@{ant-prefix}-input-group,
.@{ant-prefix}-input-group-wrapper {
position: relative;
top: -1px;
display: inline-block;
vertical-align: middle;
}
// https://github.com/ant-design/ant-design/issues/20616
&:not(.@{form-prefix-cls}-vertical) {
:not(.@{ant-prefix}-input-group-wrapper) > .@{ant-prefix}-input-group,
.@{ant-prefix}-input-group-wrapper {
position: relative;
top: -1px;
}
}
}
// Form layout

Loading…
Cancel
Save