From d4844bbaf843d4f9a8ed54f954dbfcf810df5c6d Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 12 Jan 2018 15:54:10 +0800 Subject: [PATCH] tweak input group align in form item --- components/form/style/index.less | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index 3e0afafc51..7d8a00ac9a 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -250,16 +250,9 @@ form { // fix input with addon position. https://github.com/ant-design/ant-design/issues/8243 .@{ant-prefix}-input-group-wrapper { + vertical-align: middle; position: relative; - top: (@form-component-max-height - @input-height-base) / 2; - - &.@{ant-prefix}-input-group-wrapper-lg { - top: (@form-component-max-height - @input-height-lg) / 2; - } - - &.@{ant-prefix}-input-group-wrapper-sm { - top: (@form-component-max-height - @input-height-sm) / 2; - } + top: -1px; } }