improve ui
This commit is contained in:
@@ -67,10 +67,12 @@ export class Chat {
|
||||
this.composingMessage,
|
||||
this.isSubscribed,
|
||||
isConnected,
|
||||
senderName,
|
||||
],
|
||||
() =>
|
||||
this.primaryChannel.value == "" ||
|
||||
this.composingMessage.value == "" ||
|
||||
senderName.value == "" ||
|
||||
this.isSubscribed.value == false ||
|
||||
isConnected.value == false
|
||||
);
|
||||
|
||||
@@ -70,8 +70,9 @@ export function ThreadView(chat: Chat) {
|
||||
listElement.scrollHeight -
|
||||
(listElement.scrollTop + listElement.offsetHeight);
|
||||
if (scrollFromBottom > 400) return;
|
||||
|
||||
|
||||
listElement.scrollTop = listElement.scrollHeight;
|
||||
});
|
||||
setTimeout(() => (listElement.scrollTop = listElement.scrollHeight), 50);
|
||||
return listElement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user