Skip to content

Commit

Permalink
Merge pull request elizaOS#1784 from swizzmagik/fix/line-break-format…
Browse files Browse the repository at this point in the history
…ting-in-chat

fix: line break handling in chat
  • Loading branch information
shakkernerd authored Jan 4, 2025
2 parents ee79ef2 + a822a0e commit 3fec0bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export default function Chat() {
: "justify-start"
}`}
>
<div
className={`max-w-[80%] rounded-lg px-4 py-2 ${
<pre
className={`max-w-[80%] rounded-lg px-4 py-2 whitespace-pre-wrap ${
message.user === "user"
? "bg-primary text-primary-foreground"
: "bg-muted"
Expand All @@ -115,7 +115,7 @@ export default function Chat() {
/>
)
))}
</div>
</pre>
</div>
))
) : (
Expand Down

0 comments on commit 3fec0bd

Please sign in to comment.