A couple small fixes: quotes, ConversationListItem, MessageDetail

- Load quoted message even with local thumbnail
- A bit more space for message in ConversationListItem
- Make the message detail screen scrollable
This commit is contained in:
Scott Nonnenberg 2018-07-18 10:42:06 -07:00
parent 6e4b73ec0c
commit fdc7c85876
3 changed files with 10 additions and 5 deletions

View File

@ -1471,10 +1471,7 @@
}
// 1. Load provided thumbnail
if (this.loadQuoteThumbnail(message, quote)) {
this.forceRender(message);
return;
}
const gotThumbnail = this.loadQuoteThumbnail(message, quote);
// 2. Check to see if we've already loaded the target message into memory
const { author, id } = quote;
@ -1487,6 +1484,13 @@
return;
}
// Even if we got the thumbnail locall, we wanted to populate the referenced
// message so a click can navigate to it.
if (gotThumbnail) {
this.forceRender(message);
return;
}
// We only go further if we need more data for this message. It's always important
// to grab the quoted message to allow for navigating to it by clicking.
const { attachments } = quote;

View File

@ -52,6 +52,7 @@
.message-detail-wrapper {
height: calc(100% - 48px);
width: 100%;
overflow-y: auto;
}
.discussion-container {

View File

@ -1955,7 +1955,7 @@
font-size: 13px;
line-height: 18px;
height: 1.2em;
height: 1.3em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;