Skip to content

Commit

Permalink
Merge pull request #1259 from utin-francis-peter/fix/issue#1222
Browse files Browse the repository at this point in the history
fix: hard breaking long string words and intelligent word breaks
  • Loading branch information
dartpain authored Oct 7, 2024
2 parents cbae7bd + c864810 commit c5adea6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/conversation/ConversationBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ const ConversationBubble = forwardRef<
className={`flex flex-row-reverse self-end flex-wrap ${className}`}
>
<Avatar className="mt-2 text-2xl" avatar="🧑‍💻"></Avatar>
<div className="ml-10 mr-2 flex items-center rounded-[28px] bg-purple-30 py-[14px] px-[19px] text-white max-w-full whitespace-pre-wrap leading-normal break-normal">
<div
style={{
wordBreak: 'break-word',
}}
className="ml-10 mr-2 flex items-center rounded-[28px] bg-purple-30 py-[14px] px-[19px] text-white max-w-full whitespace-pre-wrap leading-normal"
>
{message}
</div>
</div>
Expand Down

0 comments on commit c5adea6

Please sign in to comment.