mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
UX: thread list design changes (#23348)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user