@@ -42,40 +42,47 @@ export function ProviderSubagentBar(props: {
4242 return ( ) => clearInterval ( id ) ;
4343 } , [ live , status ] ) ;
4444
45+ // Sized by the composer, not the viewport: a docked side panel narrows the
46+ // chat column on a wide window, and one row there squeezes out the model
47+ // and status, so the status drops to its own line instead.
4548 return (
4649 < div className = "flex min-h-12 items-center gap-3 rounded-3xl py-2 ps-5 pe-2 text-sm" >
47- < span className = "flex min-w-0 items-center gap-2" >
48- { props . provider ? (
49- < ProviderInstanceIcon
50- driverKind = { props . provider . driverKind }
51- displayName = { props . provider . displayName }
52- accentColor = { props . provider . accentColor }
53- acpRegistryAgentId = { props . provider . acpRegistryAgentId }
54- acpRegistryIconUrl = { props . provider . acpRegistryIconUrl }
55- showBadge = { props . showInstanceBadge }
56- className = "size-4 shrink-0"
57- iconClassName = "size-4"
58- badgeClassName = "right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-5xs"
59- />
60- ) : null }
61- < span className = "min-w-0 truncate font-medium text-foreground" > { props . modelLabel } </ span >
62- { props . effortLabel === null ? null : (
63- < span className = "shrink-0 text-muted-foreground" > { props . effortLabel } </ span >
64- ) }
65- </ span >
66- < span
67- ref = { statusRef }
68- aria-hidden
69- className = "min-w-0 truncate text-muted-foreground tabular-nums"
70- />
50+ < div className = "flex min-w-0 flex-1 items-center gap-3 @max-[560px]/composer-surface:flex-col @max-[560px]/composer-surface:items-start @max-[560px]/composer-surface:gap-0.5" >
51+ < span className = "flex min-w-0 max-w-full items-center gap-2" >
52+ { props . provider ? (
53+ < ProviderInstanceIcon
54+ driverKind = { props . provider . driverKind }
55+ displayName = { props . provider . displayName }
56+ accentColor = { props . provider . accentColor }
57+ acpRegistryAgentId = { props . provider . acpRegistryAgentId }
58+ acpRegistryIconUrl = { props . provider . acpRegistryIconUrl }
59+ showBadge = { props . showInstanceBadge }
60+ className = "size-4 shrink-0"
61+ iconClassName = "size-4"
62+ badgeClassName = "right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-5xs"
63+ />
64+ ) : null }
65+ < span className = "min-w-0 truncate font-medium text-foreground" > { props . modelLabel } </ span >
66+ { props . effortLabel === null ? null : (
67+ < span className = "shrink-0 text-muted-foreground" > { props . effortLabel } </ span >
68+ ) }
69+ </ span >
70+ < span
71+ ref = { statusRef }
72+ aria-hidden
73+ className = "min-w-0 max-w-full truncate text-muted-foreground tabular-nums @max-[560px]/composer-surface:text-xs"
74+ />
75+ </ div >
7176 < span role = "status" className = "sr-only" >
7277 { `${ modelDescription } subagent: ${ announcement } ` }
7378 </ span >
74- < span className = "ms-auto shrink-0 text-muted-foreground max-sm:hidden" > Runs on its own</ span >
79+ < span className = "shrink-0 text-muted-foreground @max-[640px]/composer-surface:sr-only" >
80+ Runs on its own
81+ </ span >
7582 { props . onOpenParent ? (
7683 < Button size = "sm" variant = "ghost" onClick = { props . onOpenParent } >
7784 < ArrowUpLeftIcon />
78- Open parent
85+ < span className = "@max-[320px]/composer-surface:sr-only" > Open parent</ span >
7986 </ Button >
8087 ) : null }
8188 </ div >
0 commit comments