Skip to content

Commit

Permalink
fix(collapsible-section): prevent header from wrapping, crop text wit…
Browse files Browse the repository at this point in the history
…h ellipsis instead
  • Loading branch information
adrianschmidt committed Apr 1, 2019
1 parent 119270f commit e852a9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/collapsible-section/collapsible-section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,18 @@ section {
display: flex;
padding-left: pxToRem(10);

> h5 {
flex-grow: 1;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

> .expander {
color: #a6a6a6;
flex-grow: 0;
flex-shrink: 0;
height: pxToRem(30);
margin-right: pxToRem(5);
width: pxToRem(30);
Expand Down

0 comments on commit e852a9c

Please sign in to comment.