Commit f4230d27 by michaelpastushkov

fix

parent a62db13c
...@@ -296,11 +296,12 @@ ...@@ -296,11 +296,12 @@
const img = targetEl.querySelector('img.thinking-cat'); const img = targetEl.querySelector('img.thinking-cat');
if (img) targetEl.innerHTML = ''; if (img) targetEl.innerHTML = '';
} }
function scrollToBottom() {
// force scroll to very bottom of the scrollable area
mainScroll.scrollTop = mainScroll.scrollHeight;
}
function scrollToBottom(smooth = false) {
if (!mainScroll) return;
const top = mainScroll.scrollHeight - mainScroll.clientHeight;
mainScroll.scrollTo({ top, behavior: smooth ? 'smooth' : 'auto' });
}
function setComposerLocked(locked) { function setComposerLocked(locked) {
isRunning = locked; isRunning = locked;
inputText.placeholder = locked ? t('status.thinking', 'Thinking…') : t('composer.placeholder', 'What can I help you with?'); inputText.placeholder = locked ? t('status.thinking', 'Thinking…') : t('composer.placeholder', 'What can I help you with?');
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
<div class="composer py-3"> <div class="composer py-3">
<div class="container"> <div class="container">
<form id="promptForm" class="d-flex flex-column gap-2"> <form id="promptForm" class="d-flex flex-column gap-2">
<textarea id="inputText" class="form-control" rows="3" placeholder=""></textarea> <textarea id="inputText" class="form-control" rows="1" placeholder=""></textarea>
<div class="d-flex align-items-center gap-2"> <div class="d-flex align-items-center gap-2">
<button id="goBtn" class="btn btn-primary" type="submit"></button> <button id="goBtn" class="btn btn-primary" type="submit"></button>
<button id="stopBtn" class="btn btn-outline-danger" type="button" style="display:none"></button> <button id="stopBtn" class="btn btn-outline-danger" type="button" style="display:none"></button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment