Adding a scroll to the chatbot

my chatbot works like this

as you can see the more message i type the lower the textbox goes. white the messages are in one placeholer, the textbox is in another. yet i canot seem to enable a height to the chat messages and enable scroll such that the text box stays init place and user can scroll back and forth to see the history

2 Likes

Hi @jiniyash,

Thanks for posting and welcome to the Streamlit Community Forum!

Have you seen the new st.chat elements we released yesterday? This solves your issue.

Here are the docs for reference: Chat elements - Streamlit Docs

Happy Streamlit-ing! :balloon:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.