From 5920ad8834dd8d3077376636c8347e7547bb6a04 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sat, 30 Aug 2025 15:22:50 -0700 Subject: [PATCH] UI: Give streaming instruct messages more vertical space --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index c9ee6284..7246ca87 100644 --- a/js/main.js +++ b/js/main.js @@ -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`; } }