improve ui, scroll new messages
This commit is contained in:
@@ -59,10 +59,12 @@ export function ThreadView(chat: Chat) {
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
const listElement = (
|
||||
<div
|
||||
class="flex-column gap"
|
||||
children:append={[chat.messages, messageConverter]}
|
||||
></div>
|
||||
);
|
||||
chat.messages.handleAddition(() => listElement.scrollTop = listElement.scrollHeight);
|
||||
return listElement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user