Skip to content

Commit

Permalink
fix(material/list): use flexbox to size mat-line elements (#19809) (#…
Browse files Browse the repository at this point in the history
…19819)

Use `flex: auto` instead of `width: 100%` to size `.mat-list-text` elements. using `width: 100%` can lead to `.mat-list-text` sibling elements shrinking and having their content overflow.
  • Loading branch information
swseverance authored Jul 11, 2020
1 parent 0ddad07 commit 998bb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/core/style/_list-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

display: flex;
flex-direction: column;
width: 100%;
flex: auto;
box-sizing: border-box;
overflow: hidden;

Expand Down

0 comments on commit 998bb18

Please sign in to comment.