Skip to content

Commit

Permalink
fix(form field): make form control container take all space (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Feb 28, 2020
1 parent aee71a7 commit 2e11ec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<ng-content select="[nbPrefix]"></ng-content>
</div>

<div [class.nb-form-field-control-with-prefix]="shouldShowPrefix()"
<div class="form-control"
[class.nb-form-field-control-with-prefix]="shouldShowPrefix()"
[class.nb-form-field-control-with-suffix]="shouldShowSuffix()">
<ng-content></ng-content>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
display: flex;
align-items: center;
}

.form-control {
width: 100%;
}

0 comments on commit 2e11ec9

Please sign in to comment.