Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(calls): stop cropping video tiles in wide windows (#9354)
Eric Hayes7dcedef42af6
diff --git a/apps/web/src/features/channel/Call/CallOverlay.tsx b/apps/web/src/features/channel/Call/CallOverlay.tsxindex 4bff2f5e8c..c118aba686 100644--- a/apps/web/src/features/channel/Call/CallOverlay.tsx+++ b/apps/web/src/features/channel/Call/CallOverlay.tsx@@ -55,16 +55,26 @@ function ParticipantTileWrapper(props: {isConnecting?: boolean;class?: string;}) {+ // Fills its cell, but never wider than 16:9: on a wide panel a full-width+ // tile crops a 16:9 camera to a zoomed-in strip. Taller cells (phones,+ // grids) still fill, so portrait video keeps the space.+ // The minimum height sits on the cell: size containment ignores content.return (<divclass={cn(- 'relative flex items-center justify-center rounded-lg overflow-hidden bg-panel min-h-30 border border-edge-muted',- props.isSpeaking && 'ring-inset ring-2 ring-accent',- props.isConnecting && 'animate-pulse',+ 'flex size-full min-h-30 items-center justify-center [container-type:size]',props.class)}>- {props.children}+ <div+ class={cn(+ 'relative flex h-full w-[min(100cqw,calc(100cqh*16/9))] items-center justify-center rounded-lg overflow-hidden bg-panel border border-edge-muted',+ props.isSpeaking && 'ring-inset ring-2 ring-accent',+ props.isConnecting && 'animate-pulse'+ )}+ >+ {props.children}+ </div></div>);}@@ -345,7 +355,6 @@ export function CallOverlay(props: {when={participants().length > 0}fallback={<LocalParticipantTile- class="size-full"isSpeaking={isLocalSpeaking()}isConnecting={isConnecting()}isAudioMuted={callCtx.isAudioMuted()}@@ -374,7 +383,7 @@ export function CallOverlay(props: {{/* Local participant PIP (Google Meet style: small, bottom-right) */}<div class="absolute bottom-4 right-4 w-40 aspect-video shadow-lg z-10 sm:w-48"><LocalParticipantTile- class="size-full min-h-0"+ class="min-h-0"isSpeaking={isLocalSpeaking()}isConnecting={isConnecting()}isAudioMuted={callCtx.isAudioMuted()}diff --git a/apps/web/src/features/channel/Call/tests/call-overlay-muted.test.tsx b/apps/web/src/features/channel/Call/tests/call-overlay-muted.test.tsxindex d1b751c2e1..b7d47634f0 100644--- a/apps/web/src/features/channel/Call/tests/call-overlay-muted.test.tsx+++ b/apps/web/src/features/channel/Call/tests/call-overlay-muted.test.tsx@@ -250,17 +250,13 @@ describe('CallOverlay muted microphone badges', () => {'[data-testid="track-local-camera"]')).not.toBeNull();- expect(fullTileBadge.parentElement?.parentElement?.className).not.toContain(- 'bottom-4'- );+ expect(fullTileBadge.closest('.bottom-4')).toBeNull();const remote = createRemoteParticipant('alex', {});controls.setParticipants(new Map([[remote.identity, remote]]));const pipBadge = screen.getByRole('status', { name: 'You are muted' });- expect(pipBadge.parentElement?.parentElement?.className).toContain(- 'bottom-4'- );+ expect(pipBadge.closest('.bottom-4')).not.toBeNull();controls.setAudioMuted(false);expect(screen.queryByRole('status', { name: 'You are muted' })).toBeNull();diff --git a/docs/agent-guide/calls.md b/docs/agent-guide/calls.mdindex c79646e569..c804334b0a 100644--- a/docs/agent-guide/calls.md+++ b/docs/agent-guide/calls.md@@ -200,6 +200,9 @@ call without gaining access to the channel.The join screen, in-call participant tiles, and incoming direct-call badges useprofile pictures; initials are the fallback when no photo is available.+In-call participant tiles fill their grid cell but are never wider than 16:9,+so a wide window centers them instead of cropping cameras; check a single remote+participant in a wide window and at phone width.The join screen has microphone, camera, and background effects buttons over thepreview, with pill selectors below for microphone, speaker, camera, andbackgrounds. The background button over the preview toggles the selected effect