Skip to content

Commit a1e180d

Browse files
committed
fix: inline-form span layout not work #3862
1 parent 28e2660 commit a1e180d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/form/style/index.less

+7-1
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,11 @@ form {
362362

363363
//== Inline Form
364364
.@{form-prefix-cls}-inline {
365+
display: flex;
366+
flex-wrap: wrap;
365367
.@{form-prefix-cls}-item {
366-
display: inline-block;
368+
flex: none;
369+
flex-wrap: nowrap;
367370
margin-right: 16px;
368371
margin-bottom: 0;
369372

@@ -376,6 +379,9 @@ form {
376379
display: inline-block;
377380
vertical-align: top;
378381
}
382+
> .@{form-prefix-cls}-item-label {
383+
flex: none;
384+
}
379385
}
380386

381387
.@{form-prefix-cls}-text {

0 commit comments

Comments
 (0)