improve ui
This commit is contained in:
Vendored
+4
-2
@@ -386,9 +386,10 @@
|
|||||||
this.primaryChannel,
|
this.primaryChannel,
|
||||||
this.composingMessage,
|
this.composingMessage,
|
||||||
this.isSubscribed,
|
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.cannotAddSecondaryChannel = createProxyState(
|
||||||
[this.newSecondaryChannelName],
|
[this.newSecondaryChannelName],
|
||||||
@@ -919,6 +920,7 @@
|
|||||||
if (scrollFromBottom > 400) return;
|
if (scrollFromBottom > 400) return;
|
||||||
listElement.scrollTop = listElement.scrollHeight;
|
listElement.scrollTop = listElement.scrollHeight;
|
||||||
});
|
});
|
||||||
|
setTimeout(() => listElement.scrollTop = listElement.scrollHeight, 50);
|
||||||
return listElement;
|
return listElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,10 +67,12 @@ export class Chat {
|
|||||||
this.composingMessage,
|
this.composingMessage,
|
||||||
this.isSubscribed,
|
this.isSubscribed,
|
||||||
isConnected,
|
isConnected,
|
||||||
|
senderName,
|
||||||
],
|
],
|
||||||
() =>
|
() =>
|
||||||
this.primaryChannel.value == "" ||
|
this.primaryChannel.value == "" ||
|
||||||
this.composingMessage.value == "" ||
|
this.composingMessage.value == "" ||
|
||||||
|
senderName.value == "" ||
|
||||||
this.isSubscribed.value == false ||
|
this.isSubscribed.value == false ||
|
||||||
isConnected.value == false
|
isConnected.value == false
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -70,8 +70,9 @@ export function ThreadView(chat: Chat) {
|
|||||||
listElement.scrollHeight -
|
listElement.scrollHeight -
|
||||||
(listElement.scrollTop + listElement.offsetHeight);
|
(listElement.scrollTop + listElement.offsetHeight);
|
||||||
if (scrollFromBottom > 400) return;
|
if (scrollFromBottom > 400) return;
|
||||||
|
|
||||||
listElement.scrollTop = listElement.scrollHeight;
|
listElement.scrollTop = listElement.scrollHeight;
|
||||||
});
|
});
|
||||||
|
setTimeout(() => (listElement.scrollTop = listElement.scrollHeight), 50);
|
||||||
return listElement;
|
return listElement;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user