Refinement after previous commit

This commit is contained in:
oobabooga 2025-05-04 18:29:05 -07:00
parent 690d693913
commit 2da197bba4

View file

@ -157,7 +157,7 @@ const observer = new MutationObserver(function(mutations) {
const lastChild = messagesContainer?.lastElementChild; const lastChild = messagesContainer?.lastElementChild;
const prevSibling = lastChild?.previousElementSibling; const prevSibling = lastChild?.previousElementSibling;
if (lastChild && prevSibling) { if (lastChild && prevSibling) {
lastChild.style.minHeight = `calc(100vh - ${prevSibling.offsetHeight}px - 102px)`; lastChild.style.minHeight = `calc(max(70vh, 100vh - ${prevSibling.offsetHeight}px - 102px))`;
} }
} }
}); });