Ai Chat auto scroll as ai model writes
Unanswered
Brown bear posted this in #help-forum
Brown bearOP
I can't seem to do the auto scroll that you see on every ai chat model, please help
21 Replies
European sprat
works here
Brown bearOP
Yes, i used that template. Somehow i broke it, and i can't fix it since yesterday
And as a "low experienced" developer, i'm asking for some more experience insight to try and locate the problem
European sprat
i'm pretty sure it's related to this line https://github.com/vercel-labs/ai-chatbot/blob/807ad666c24b3ca812ae4d14e7cc25eb1e675b5f/components/chat.tsx#L57C27-L57C27
Brown bearOP
Yes, i have it like that
But still nothing. I made some ui changes, and i tried to revert/add/move things and still nothing
I changed the prompt-form, could it has something to do with it? As i changed heights and stuff
you can see there the "useInView" function has "rootMargin" so maybe you need to adjust that now that you've changed the prompt form styles
Brown bearOP
Will take a look
And give you feedback
European sprat
good luck
Brown bearOP
this would be
top, bottom, left and right?
or top, right, bottom, left?
Brown bearOP
@European sprat no, nothing
Could you check my code out?
European sprat
No sorry
Brown bearOP
No problem, thanks for the help still!