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
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
Sam Severance authored and mmalerba committed Jul 7, 2020
1 parent 3a7e93c commit 73084e3
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 73084e3

Please sign in to comment.