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
@@ -1083,7 +1083,11 @@ function AddMessageItem(element, elementID, platform, userId) {
messageList.appendChild(lineItem);
setTimeout(function () {
lineItem.className = lineItem.className + " show";
lineItem.style.width = calculatedWidth;
lineItem.style.maxWidth = calculatedWidth;
// After it's done animating, remove the width constraint in case the div needs to get longer
setTimeout(function () {
lineItem.style.maxWidth = "none";
}, 1000);
}, 10);
// Remove old messages that have gone off screen to save memory
+1 -1
View File
@@ -103,7 +103,7 @@ html {
li {
list-style: none;
overflow: hidden;
width: 0px;
max-width: 0px;
transition: all 1s ease-in-out;
}