diff --git a/website/client/components/userMenu/inbox.vue b/website/client/components/userMenu/inbox.vue index ff36e3a325..a567cd0206 100644 --- a/website/client/components/userMenu/inbox.vue +++ b/website/client/components/userMenu/inbox.vue @@ -35,7 +35,7 @@ .time span.mr-1(v-if='conversation.username') @{{ conversation.username }} • span {{ conversation.date | timeAgo }} - div {{conversation.lastMessageText ? conversation.lastMessageText.substring(0, 30) : ''}} + div.messagePreview {{ conversation.lastMessageText ? removeTags(parseMarkdown(conversation.lastMessageText)) : '' }} .col-8.messages.d-flex.flex-column.justify-content-between .empty-messages.text-center(v-if='!selectedConversation.key') .svg-icon.envelope(v-html="icons.messageIcon") @@ -209,6 +209,16 @@ color: $gray-200; margin-bottom: 0.5rem; } + + .messagePreview { + display: block; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-word; + }