From 2b65b8aff2abb9de8eac4562920b47e302007470 Mon Sep 17 00:00:00 2001 From: Hiep Le <69354317+hieptl@users.noreply.github.com> Date: Wed, 13 Aug 2025 18:14:28 +0700 Subject: [PATCH] fix(frontend): UI breaks when user message contains codeblock that's too wide (#10276) --- frontend/src/components/features/chat/chat-message.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/features/chat/chat-message.tsx b/frontend/src/components/features/chat/chat-message.tsx index 126b5b3880..34ea5a0684 100644 --- a/frontend/src/components/features/chat/chat-message.tsx +++ b/frontend/src/components/features/chat/chat-message.tsx @@ -53,7 +53,7 @@ export function ChatMessage({ onMouseEnter={() => setIsHovering(true)} onMouseLeave={() => setIsHovering(false)} className={cn( - "rounded-xl relative w-fit", + "rounded-xl relative w-fit max-w-full", "flex flex-col gap-2", type === "user" && " p-4 bg-tertiary self-end", type === "agent" && "mt-6 max-w-full bg-transparent",