st-chat icon indicating copy to clipboard operation
st-chat copied to clipboard

Alignment issue with user input in streamlit_chat

Open duanyongyao opened this issue 1 year ago • 1 comments

I noticed that when a user inputs a message using the streamlit_chat library, the text is right-aligned instead of left-aligned, which is not the usual convention and looks very strange. Here is an example code snippet:

from streamlit_chat import message  
message("""  
write a poem with these words  
Air  
Sunlight  
There are green leaves and wind, distant voices, an old Taoist priest standing in front of the temple  
there is a mysterious power in his eyes, as if he can see through my heart.  
""", is_user=True)

As you can see in the attached image, the user input is aligned to the right, which is not desirable. Can this be fixed to left-align the text instead? Thank you.

image

duanyongyao avatar Mar 23 '23 07:03 duanyongyao