feat: implement scroll to bottom

This commit is contained in:
shadcn 2023-06-11 22:58:00 +04:00
parent f15cd0c936
commit 857a99736f
5 changed files with 62 additions and 12 deletions

View file

@ -18,7 +18,7 @@ export function Chat({ id, initialMessages }: ChatProps) {
})
return (
<div className="h-full w-full overflow-auto bg-muted/50 pb-[200px] pt-4 md:pt-10">
<div className="pb-[200px] pt-4 md:pt-10">
<ChatList messages={messages} />
<ChatPanel
id={id}