Fix overflow in messages

This commit is contained in:
Jill Stingray 2020-06-09 13:00:46 +03:00
parent 038210cb94
commit fce3786634
2 changed files with 9 additions and 2 deletions

View file

@ -40,7 +40,7 @@
alt="Фотография пользователя" />
</div>
<div class="crp-entry--message---text">
{$lastMsg->getText()|truncate:60}
{$lastMsg->getText()|noescape}
</div>
</div>
</div>

View file

@ -791,6 +791,13 @@ table.User {
vertical-align: top;
}
.crp-entry--message---text {
max-height: 45px;
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
}
.crp-entry--message---text, .messenger-app--messages---message .time {
color: #404036;
}
@ -828,7 +835,7 @@ table.User {
width: 300px;
}
.messenger-app--messages---message ._content span, .messenger-app--messages---message ._content a {
.messenger-app--messages---message ._content span, .messenger-app--messages---message ._content > a {
display: block;
}