Skip to content

Commit c725249

Browse files
ppham27jelbourn
authored andcommitted
fix(chips): use all available space for the input (#7462)
Currently, an input inside a chips list is limited to 150px, so it looks like this. ![Cutoff Name](https://user-images.githubusercontent.com/1882729/31061451-6eb3a072-a6d6-11e7-9dac-67b41d1d3087.png). Adding flex lets the input use all available space and still wrap correctly. ![Using all avaible space](https://user-images.githubusercontent.com/1882729/31061470-a0e783d8-a6d6-11e7-8919-848e1c4cb10a.png) ![Wrapping](https://user-images.githubusercontent.com/1882729/31061487-cdbfb10a-a6d6-11e7-89c9-a5fe1cf38c41.png)
1 parent f83beb8 commit c725249

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/chips/chips.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ $mat-chip-input-margin: 3px;
9797
input.mat-chip-input {
9898
width: $mat-chip-input-width;
9999
margin: $mat-chip-input-margin;
100+
flex: 1 0 $mat-chip-input-width;
100101
}

0 commit comments

Comments
 (0)