Skip to content

Commit c65bd1c

Browse files
committed
add scroll top to thinking box
1 parent e3a179e commit c65bd1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/agentic-strands/app/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ <h1>Library Assistant AI</h1>
108108
loadingDiv.className = 'message agent-message loading';
109109
loadingDiv.textContent = 'Thinking...';
110110
chatContainer.appendChild(loadingDiv);
111+
chatContainer.scrollTop = chatContainer.scrollHeight;
111112

112113
try {
113114
const response = await fetch('/chat', {

0 commit comments

Comments
 (0)