From d685a8e0228489d4287c5f4763f6b536be339e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=BC=A6=E8=AF=AD?= Date: Tue, 30 Sep 2025 19:14:34 +0800 Subject: [PATCH 1/2] fix(bubbleVariant): whitespace-pre-wrap and break-words --- src/bubble/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bubble/index.tsx b/src/bubble/index.tsx index 9506f1f..08d97ce 100644 --- a/src/bubble/index.tsx +++ b/src/bubble/index.tsx @@ -12,7 +12,7 @@ import type { MessageParam } from "../utils"; 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: { @@ -359,4 +359,4 @@ export const BubbleList = memo(function BubbleList({ )} ); -}); +}); \ No newline at end of file From fba53861407be4fb1466447a88c736760527679c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=BC=A6=E8=AF=AD?= Date: Wed, 1 Oct 2025 18:42:13 +0800 Subject: [PATCH 2/2] fix: lint --- src/bubble/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bubble/index.tsx b/src/bubble/index.tsx index 08d97ce..a7bd11f 100644 --- a/src/bubble/index.tsx +++ b/src/bubble/index.tsx @@ -359,4 +359,4 @@ export const BubbleList = memo(function BubbleList({ )} ); -}); \ No newline at end of file +});