Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/fix-bubble-x-overflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@matechat/react": patch:fix
---

Fixed an issue where the `Bubble` component would overflow horizontally when a single word was too long.
2 changes: 1 addition & 1 deletion src/bubble/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { twMerge } from "tailwind-merge";
import { BlockQuote, CodeBlock, Heading, Link } from "./markdown";

const bubbleVariants = cva(
"flex flex-col gap-1 justify-center rounded-lg dark:text-gray-200 text-gray-800 max-w-full overflow-x-auto",
"flex flex-col gap-1 justify-center rounded-lg dark:text-gray-200 text-gray-800 max-w-full whitespace-pre-wrap break-words",
{
variants: {
size: {
Expand Down
Loading