UX: thread list design changes (#23348)

This commit is contained in:
chapoi
2023-08-31 18:09:41 +02:00
committed by GitHub
parent dac4f97032
commit c9c2a73441
4 changed files with 39 additions and 46 deletions
@@ -14,9 +14,6 @@
{{on "click" (fn this.openThread @thread) passive=true}}
>
<div class="chat-thread-list-item__header">
<div class="chat-thread-list-item__om-user-avatar">
<Chat::UserAvatar @user={{@thread.originalMessage.user}} />
</div>
<div class="chat-thread-list-item__title">
{{#if this.title}}
{{replace-emoji this.title}}
@@ -31,7 +28,7 @@
<div class="chat-thread-list-item__body">
<span class="chat-thread-list-item__last-reply-author">
{{@thread.preview.lastReplyUser.username}}:
@{{@thread.preview.lastReplyUser.username}}:
</span>
<span class="chat-thread-list-item__last-reply-excerpt">
{{replace-emoji (html-safe @thread.preview.lastReplyExcerpt)}}
@@ -39,21 +36,23 @@
</div>
<div class="chat-thread-list-item__metadata">
<Chat::Thread::Participants
@thread={{@thread}}
@includeOriginalMessageUser={{false}}
class="chat-thread-list-item__participants"
/>
<span class="chat-thread-list-item__replies-count">
{{i18n "chat.thread.replies" count=@thread.preview.replyCount}}
</span>
<span class="chat-thread-list-item__metadata__separator">·</span>
<div class="chat-thread-list-item__last-reply-timestamp">
{{#if @thread.preview.lastReplyCreatedAt}}
<span>{{i18n "chat.thread.last_reply"}}</span>
{{format-date @thread.preview.lastReplyCreatedAt leaveAgo="true"}}
{{/if}}
</div>
<Chat::UserAvatar
@user={{@thread.originalMessage.user}}
@showPresence={{false}}
/>
<Chat::Thread::Participants
@thread={{@thread}}
@includeOriginalMessageUser={{false}}
class="chat-thread-list-item__participants"
/>
</div>
</div>
</div>