@@ -163,7 +163,7 @@ export function BotActivityComposerAction({
163163 className = { cn (
164164 "inline-flex items-center justify-center rounded-full border border-border/60 bg-background font-medium text-muted-foreground transition-colors hover:border-primary/30 hover:bg-primary/5 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring data-[state=open]:border-primary/40 data-[state=open]:bg-primary/10 data-[state=open]:text-primary" ,
165165 isInline
166- ? "h-7 min-w-0 gap-2 overflow-visible border-transparent bg-transparent px-0 text-xs font-semibold leading-none shadow-none hover:border-transparent hover:bg-transparent data-[state=open]:border-transparent data-[state=open]:bg-transparent"
166+ ? "h-7 min-w-0 max-w-full gap-2 overflow-hidden border-transparent bg-transparent px-0 text-left text-xs font-semibold leading-none shadow-none hover:border-transparent hover:bg-transparent data-[state=open]:border-transparent data-[state=open]:bg-transparent"
167167 : "h-9 min-w-9 gap-1.5 px-2 text-xs" ,
168168 ) }
169169 data-testid = "bot-activity-composer-trigger"
@@ -177,7 +177,7 @@ export function BotActivityComposerAction({
177177 onMouseLeave = { closeWithDelay }
178178 type = "button"
179179 >
180- < span className = "flex items-center overflow-visible py-px -space-x-1" >
180+ < span className = "flex shrink-0 items-center overflow-visible py-px -space-x-1" >
181181 { typingAgents . slice ( 0 , 2 ) . map ( ( agent ) => (
182182 < UserAvatar
183183 avatarUrl = { agentAvatarUrl ( agent ) }
@@ -193,12 +193,20 @@ export function BotActivityComposerAction({
193193 ) ) }
194194 </ span >
195195 { typingAgents . length > 2 ? (
196- < span className = "text-2xs leading-none" >
196+ < span className = "shrink-0 text-2xs leading-none" >
197197 +{ typingAgents . length - 2 }
198198 </ span >
199199 ) : null }
200- < span className = { cn ( isInline ? "max-w-40 truncate" : "sr-only" ) } >
201- { isInline ? < Shimmer > { visibleStatusLabel } </ Shimmer > : "working" }
200+ < span
201+ className = { cn ( isInline ? "min-w-0 flex-1 truncate" : "sr-only" ) }
202+ >
203+ { isInline ? (
204+ < Shimmer className = "max-w-full truncate" >
205+ { visibleStatusLabel }
206+ </ Shimmer >
207+ ) : (
208+ "working"
209+ ) }
202210 </ span >
203211 { isInline ? null : (
204212 < Loader2 className = "h-4 w-4 shrink-0 animate-spin opacity-70" />
0 commit comments