Show long comment (#1354)

* #1324 long comment

* #1324 use different css style

* #1324 Fix long words without space
This commit is contained in:
Maurizio Vitale
2017-01-04 10:57:39 +00:00
committed by Denys Vuika
parent ccd8f64071
commit 4c522fabb8
4 changed files with 30 additions and 7 deletions

View File

@@ -17,3 +17,16 @@
.material-icons {
cursor: pointer;
}
.list-wrap {
word-wrap: break-word;
word-break: break-all;
-moz-hyphens:auto;
-webkit-hyphens:auto;
-o-hyphens:auto;
hyphens:auto;
}
.hide-long-names {
overflow: auto;
}

View File

@@ -7,11 +7,8 @@
<div class="menu-container" *ngIf="comments?.length > 0">
<ul class='mdl-list'>
<li class="mdl-list__item" *ngFor="let comment of comments">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">comment</i>
{{comment.message}}
</span>
<li class="mdl-list__item list-wrap" *ngFor="let comment of comments">
<span class="mdl-list__item-primary-content hide-long-names"><i class="material-icons mdl-list__item-icon">comment</i>{{comment.message}}</span>
</li>
</ul>
</div>