Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display line breaks in chat #48

Closed
MartinPicc opened this issue Nov 22, 2023 · 2 comments
Closed

Display line breaks in chat #48

MartinPicc opened this issue Nov 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@MartinPicc
Copy link

Hi,

Suggestion for a small but nice frontend improvement: add whitespace-pre-line as an HTML class in this line:

className={`inline-block p-3 rounded-xl animate-press-in shadow-md font-mono text-sm ${message.type === "user" ? "bg-yellow-200" : "bg-white"

As such, messages in the chat will be displayed with proper line breaks.

With:
image

Without:
image

@thomashacker
Copy link
Collaborator

Awesome! Thanks, we'll definitely add it to make the Chat UI look better 🚀

@thomashacker thomashacker added the enhancement New feature or request label Nov 22, 2023
@thomashacker
Copy link
Collaborator

Fixed and merged on the main branch! It will be included in the v0.3.1 release! You can install it by cloning the GitHub repo and using pip install -e . or wait for the release, which should come soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants