Chat message sizes are now flexible to allow resizing + account for delayed emote loading

This commit is contained in:
nuttylmao
2025-03-30 22:54:46 +11:00
parent 2bdb3805c3
commit 2f8af0ad6f
4 changed files with 12 additions and 4 deletions
+5 -1
View File
@@ -1811,7 +1811,11 @@ function AddMessageItem(element, elementID, platform, userId) {
messageList.appendChild(lineItem);
setTimeout(function () {
lineItem.className = lineItem.className + " show";
lineItem.style.height = calculatedHeight;
lineItem.style.maxHeight = calculatedHeight;
// After it's done animating, remove the height constraint in case the div needs to get bigger
setTimeout(function () {
lineItem.style.maxHeight = "none";
}, 1000);
}, 10);
// Remove old messages that have gone off screen to save memory