mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 06:06:20 -04:00
CSS fix
This commit is contained in:
parent
f59998d268
commit
a45a652130
1 changed files with 4 additions and 1 deletions
|
@ -183,7 +183,10 @@ 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.setProperty("margin-bottom", `calc(max(70vh, 100vh - ${prevSibling.offsetHeight}px - 102px) - ${lastChild.offsetHeight}px)`, "important");
|
lastChild.style.setProperty("margin-bottom",
|
||||||
|
`max(0px, calc(max(70vh, 100vh - ${prevSibling.offsetHeight}px - 102px) - ${lastChild.offsetHeight}px))`,
|
||||||
|
"important"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue