feat: dynamic voice grid layout with ResizeObserver
Replace hardcoded Tailwind grid-cols breakpoints with a container-aware layout algorithm that uses ResizeObserver to recompute optimal tile arrangement. Maximizes tile area while maintaining 16:9 aspect ratio, automatically adapting when VoiceChatPanel opens/closes, window resizes, or fullscreen is toggled.
This commit is contained in:
@@ -108,7 +108,7 @@ export function VoiceUser({ tile, large }: VoiceUserProps) {
|
||||
isSpeaking
|
||||
? 'ring-[3px] ring-status-online shadow-[0_0_12px_rgba(134,239,172,0.25)]'
|
||||
: 'ring-1 ring-white/[0.06] hover:ring-white/10'
|
||||
} ${large ? 'h-full w-full' : 'h-full aspect-video'}`}
|
||||
} h-full w-full`}
|
||||
onContextMenu={handleContextMenu}
|
||||
>
|
||||
{hasVideo ? (
|
||||
|
||||
Reference in New Issue
Block a user