fix(frontend): UI breaks when user message contains codeblock that's too wide (#10276)

This commit is contained in:
Hiep Le 2025-08-13 18:14:28 +07:00 committed by GitHub
parent 11f364c5e4
commit 2b65b8aff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",