fix(call): aspect-video for fullscreen grid+strip, switch section sizing to stageLayout

This commit is contained in:
byGalax
2026-05-12 19:03:23 +02:00
parent e56533918e
commit 91eedc0e8e
+9 -5
View File
@@ -512,10 +512,10 @@ export function InCallPanel({ conversation }: Props) {
// Focus mode dedicates the entire call-panel vertical slot to the speaker so // Focus mode dedicates the entire call-panel vertical slot to the speaker so
// the tile can grow in height (grid mode's 420px cap leaves it squashed). // the tile can grow in height (grid mode's 420px cap leaves it squashed).
const sectionClass = const sectionClass =
callMode === 'focus' stageLayout.kind === 'focus'
? 'flex min-h-[420px] shrink-0 flex-col overflow-hidden border-b border-line bg-surface-2' ? 'flex min-h-[420px] shrink-0 flex-col overflow-hidden border-b border-line bg-surface-2'
: 'flex min-h-[280px] max-h-[420px] shrink-0 flex-col overflow-hidden border-b border-line bg-surface-2'; : 'flex min-h-[280px] max-h-[420px] shrink-0 flex-col overflow-hidden border-b border-line bg-surface-2';
const sectionHeight = callMode === 'focus' ? '75%' : '50%'; const sectionHeight = stageLayout.kind === 'focus' ? '75%' : '50%';
return ( return (
<section <section
@@ -1329,7 +1329,7 @@ function FullscreenCall({
{others.map((p) => ( {others.map((p) => (
<div <div
key={p.id} key={p.id}
className="h-full w-[220px] shrink-0 [&>div]:h-full [&>div]:w-full" className="aspect-video h-full shrink-0 [&>div]:h-full [&>div]:w-full"
> >
<TileRender <TileRender
tile={p} tile={p}
@@ -1392,9 +1392,13 @@ function FullscreenCall({
</div> </div>
) : ( ) : (
<div className="min-h-0 flex-1 p-4"> <div className="min-h-0 flex-1 p-4">
<div className={'grid h-full gap-2 ' + gridClass}> <div
className={
'grid h-full max-h-full gap-2 place-content-center ' + gridClass
}
>
{visibleTiles.map((p) => ( {visibleTiles.map((p) => (
<div key={p.id} className="min-h-0 min-w-0 [&>div]:h-full [&>div]:w-full"> <div key={p.id} className="aspect-video min-h-0 w-full [&>div]:h-full [&>div]:w-full">
<TileRender <TileRender
tile={p} tile={p}
activeSpeakers={activeSpeakers} activeSpeakers={activeSpeakers}