Skip to content

The open-source app everyone uses to manage agents at work

Refactor user message avatar to flex layout

dotta29514606bb0b
diff --git a/ui/src/components/IssueChatThread.tsx b/ui/src/components/IssueChatThread.tsx
index 56c0b7c532..4ce6307322 100644
--- a/ui/src/components/IssueChatThread.tsx
+++ b/ui/src/components/IssueChatThread.tsx
@@ -424,11 +424,11 @@ function IssueChatUserMessage() {
return (
<MessagePrimitive.Root id={anchorId}>
- <div className="group relative">
- <div className="flex flex-col items-end">
+ <div className="group flex items-start justify-end gap-2.5">
+ <div className="flex min-w-0 max-w-[85%] flex-col items-end">
<div
className={cn(
- "max-w-[85%] min-w-0 overflow-hidden rounded-2xl px-4 py-2.5",
+ "min-w-0 overflow-hidden rounded-2xl px-4 py-2.5",
queued
? "bg-amber-50/80 dark:bg-amber-500/10"
: "bg-muted",
@@ -499,7 +499,7 @@ function IssueChatUserMessage() {
</div>
</div>
- <Avatar size="sm" className="absolute -right-8 top-1 shrink-0">
+ <Avatar size="sm" className="mt-1 shrink-0">
<AvatarFallback>You</AvatarFallback>
</Avatar>
</div>