mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 01:47:42 +08:00

- 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
20 lines
476 B
Handlebars
20 lines
476 B
Handlebars
<div class="scroll-stick-wrap">
|
|
<DButton
|
|
class={{concat-class
|
|
"btn-flat"
|
|
"chat-scroll-to-bottom"
|
|
(if (or @show @hasNewMessages) "visible")
|
|
}}
|
|
@action={{@scrollToBottom}}
|
|
>
|
|
<span class="chat-scroll-to-bottom__arrow">
|
|
{{d-icon "arrow-down"}}
|
|
|
|
{{#if @hasNewMessages}}
|
|
<span class="chat-scroll-to-bottom__text">
|
|
{{i18n "chat.scroll_to_new_messages"}}
|
|
</span>
|
|
{{/if}}
|
|
</span>
|
|
</DButton>
|
|
</div> |