mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 21:29:12 +00:00
Scroll down when a message is added in the chat interface's handle stream response method
This commit is contained in:
@@ -558,6 +558,7 @@ To get started, just start typing below. You can also type / to see a list of co
|
|||||||
newResponseElement.innerHTML = "";
|
newResponseElement.innerHTML = "";
|
||||||
}
|
}
|
||||||
newResponseElement.appendChild(formatHTMLMessage(rawResponse));
|
newResponseElement.appendChild(formatHTMLMessage(rawResponse));
|
||||||
|
document.getElementById("chat-body").scrollTop = document.getElementById("chat-body").scrollHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCompiledReferences(rawResponseElement, chunk, references, rawResponse) {
|
function handleCompiledReferences(rawResponseElement, chunk, references, rawResponse) {
|
||||||
|
|||||||
Reference in New Issue
Block a user