- group writes when computing separators positions - shows skeleton only on initial load - forces date separator to be pinned when first message to prevent a pinned - not pinned - pinned sequence when loading more in past - relies on `message.visible` property instead of checking `isElementInViewport` - attempts to load next/prev messages earlier - do not scroll to on fetch more - hides `last visit` text while pinned
28 lines
722 B
Handlebars
28 lines
722 B
Handlebars
{{#if @message.firstMessageOfTheDayAt}}
|
|
<div
|
|
class={{concat-class
|
|
"chat-message-separator-date"
|
|
(if @message.newest "with-last-visit")
|
|
}}
|
|
>
|
|
<div
|
|
class="chat-message-separator__text-container"
|
|
{{chat/track-message-separator-date}}
|
|
>
|
|
<span class="chat-message-separator__text">
|
|
<span>{{@message.firstMessageOfTheDayAt}}</span>
|
|
|
|
{{#if @message.newest}}
|
|
<span class="chat-message-separator__last-visit">
|
|
-
|
|
{{i18n "chat.last_visit"}}
|
|
</span>
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chat-message-separator__line-container">
|
|
<div class="chat-message-separator__line"></div>
|
|
</div>
|
|
{{/if}} |