Skip to content

Commit

Permalink
fix: Form flex inline style (ant-design#24531)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ authored May 28, 2020
1 parent 6773020 commit cf401f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
// ==============================================================
&-label {
display: inline-block;
flex: none;
flex-grow: 0;
overflow: hidden;
white-space: nowrap;
text-align: right;
Expand Down
4 changes: 4 additions & 0 deletions components/form/style/inline.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
vertical-align: top;
}

> .@{form-item-prefix-cls}-label {
flex: none;
}

.@{form-prefix-cls}-text {
display: inline-block;
}
Expand Down

0 comments on commit cf401f7

Please sign in to comment.