mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Chat message sizes are now flexible to allow resizing + account for delayed emote loading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user