Skip to content

Commit

Permalink
feat(list): long title is displayed on 2 lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jun 26, 2017
1 parent 561b0a5 commit d7f9414
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/layer/layer-item/layer-item.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[collapsed]="layer.collapsed"
(toggle)="toggleLegend($event)">
</md-icon>
<h4 md-line>{{layer.title}}</h4>
<h4 md-line [md-tooltip]="layer.title">{{layer.title}}</h4>

<button
md-icon-button
Expand Down
13 changes: 13 additions & 0 deletions src/lib/shared/list/list.component.styl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ md-list {
position: static;
}


:host >>> .mat-list .mat-list-item .mat-list-text>* {
white-space: normal
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
max-height: 36px;
line-height: 18px;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}


:host >>> .mat-list .mat-list-item.mat-list-item-avatar .mat-list-item-content {
display: -webkit-flex;
height: $igo-list-item-height;
Expand Down

0 comments on commit d7f9414

Please sign in to comment.