mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-10 07:34:00 +01:00
UI: Give streaming instruct messages more vertical space
This commit is contained in:
parent
21d790f87e
commit
5920ad8834
|
|
@ -206,7 +206,7 @@ const observer = new MutationObserver(function(mutations) {
|
|||
// Add padding to the messages container to create room for the last message.
|
||||
// The purpose of this is to avoid constant scrolling during streaming in
|
||||
// instruct mode.
|
||||
const bufferHeight = Math.max(0, Math.max(0.7 * window.innerHeight, window.innerHeight - prevSibling.offsetHeight - 84) - lastChild.offsetHeight);
|
||||
const bufferHeight = Math.max(0, Math.max(window.innerHeight - 128 - 84, window.innerHeight - prevSibling.offsetHeight - 84) - lastChild.offsetHeight);
|
||||
messagesContainer.style.paddingBottom = `${bufferHeight}px`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue