Merge pull request #2085 from lc6464/fix/chat/break-word

fix(chat): add break-words class to user message for better text wrapping
This commit is contained in:
Mauro 2026-03-27 10:56:47 +01:00 committed by GitHub
commit 76cd7f8ad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ interface UserMessageProps {
export function UserMessage({ content }: UserMessageProps) { export function UserMessage({ content }: UserMessageProps) {
return ( return (
<div className="flex w-full flex-col items-end gap-1.5"> <div className="flex w-full flex-col items-end gap-1.5">
<div className="max-w-[70%] rounded-2xl rounded-tr-sm bg-violet-500 px-5 py-3 text-[15px] leading-relaxed whitespace-pre-wrap text-white shadow-sm"> <div className="max-w-[70%] rounded-2xl rounded-tr-sm bg-violet-500 px-5 py-3 text-[15px] leading-relaxed whitespace-pre-wrap text-white shadow-sm break-words">
{content} {content}
</div> </div>
</div> </div>