mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-21 22:17:40 +01:00
add inline script to scroll to bottom
This commit is contained in:
@@ -27,6 +27,12 @@
|
||||
<ul component="chat/message/content" data-roomid="{roomId}" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1 ghost-scrollbar">
|
||||
<!-- IMPORT partials/chats/messages.tpl -->
|
||||
</ul>
|
||||
<script>
|
||||
(function () {
|
||||
const el = document.querySelector('[component="chat/message/content"]');
|
||||
if (el) el.scrollTop = el.scrollHeight;
|
||||
})();
|
||||
</script>
|
||||
<ul component="chat/message/search/results" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1 hidden">
|
||||
<div component="chat/message/search/no-results" class="text-center p-4 d-flex flex-column">
|
||||
<div class="p-4"><i class="fa-solid fa-wind fs-2 text-muted"></i></div>
|
||||
|
||||
Reference in New Issue
Block a user