mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-21 14:07:42 +01:00
hide until positioned
This commit is contained in:
@@ -24,13 +24,16 @@
|
||||
<hr class="my-1"/>
|
||||
<div class="d-flex flex-grow-1 gap-1 overflow-auto" style="min-width: 0px;">
|
||||
<div component="chat/messages" class="expanded-chat d-flex flex-column flex-grow-1" data-roomid="{roomId}" style="min-width: 0px;">
|
||||
<ul component="chat/message/content" data-roomid="{roomId}" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1 ghost-scrollbar">
|
||||
<ul component="chat/message/content" data-roomid="{roomId}" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1 ghost-scrollbar invisible">
|
||||
<!-- IMPORT partials/chats/messages.tpl -->
|
||||
</ul>
|
||||
<script>
|
||||
(function () {
|
||||
const el = document.querySelector('[component="chat/message/content"]');
|
||||
if (el) el.scrollTop = el.scrollHeight;
|
||||
if (el) {
|
||||
el.scrollTop = el.scrollHeight;
|
||||
el.classList.remove('invisible');
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<ul component="chat/message/search/results" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1 hidden">
|
||||
|
||||
Reference in New Issue
Block a user