improve ui

This commit is contained in:
marlon-erler
2024-07-09 18:58:05 +02:00
parent f4cb1d858c
commit b80c59e00e
3 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -386,9 +386,10 @@
this.primaryChannel,
this.composingMessage,
this.isSubscribed,
isConnected
isConnected,
senderName
],
() => this.primaryChannel.value == "" || this.composingMessage.value == "" || this.isSubscribed.value == false || isConnected.value == false
() => this.primaryChannel.value == "" || this.composingMessage.value == "" || senderName.value == "" || this.isSubscribed.value == false || isConnected.value == false
);
this.cannotAddSecondaryChannel = createProxyState(
[this.newSecondaryChannelName],
@@ -919,6 +920,7 @@
if (scrollFromBottom > 400) return;
listElement.scrollTop = listElement.scrollHeight;
});
setTimeout(() => listElement.scrollTop = listElement.scrollHeight, 50);
return listElement;
}
+2
View File
@@ -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
);
+1
View File
@@ -73,5 +73,6 @@ export function ThreadView(chat: Chat) {
listElement.scrollTop = listElement.scrollHeight;
});
setTimeout(() => (listElement.scrollTop = listElement.scrollHeight), 50);
return listElement;
}