Skip to content

πŸ™Œ OpenHands: AI-Driven Development

refactor(frontend): align chat message action buttons (#11173)

Hiep Le3493348facad
diff --git a/frontend/src/components/features/chat/chat-message.tsx b/frontend/src/components/features/chat/chat-message.tsx
index 98c14d35b8..23d3d633c1 100644
--- a/frontend/src/components/features/chat/chat-message.tsx
+++ b/frontend/src/components/features/chat/chat-message.tsx
@@ -58,7 +58,7 @@ export function ChatMessage({
"rounded-xl relative w-fit max-w-full last:mb-4",
"flex flex-col gap-2",
type === "user" && " p-4 bg-tertiary self-end",
- type === "agent" && "mt-6 max-w-full bg-transparent",
+ type === "agent" && "mt-6 w-full max-w-full bg-transparent",
)}
>
<div
@@ -107,7 +107,7 @@ export function ChatMessage({
</div>
<div
- className="text-sm"
+ className="text-sm w-fit"
style={{
whiteSpace: "normal",
wordBreak: "break-word",