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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user