diff --git a/components/form/style/index.less b/components/form/style/index.less index afd1fa952..e2d1cfe1f 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -362,8 +362,11 @@ form { //== Inline Form .@{form-prefix-cls}-inline { + display: flex; + flex-wrap: wrap; .@{form-prefix-cls}-item { - display: inline-block; + flex: none; + flex-wrap: nowrap; margin-right: 16px; margin-bottom: 0; @@ -376,6 +379,9 @@ form { display: inline-block; vertical-align: top; } + > .@{form-prefix-cls}-item-label { + flex: none; + } } .@{form-prefix-cls}-text {