From 5c35288162e69e477f83f2403bdffe5e2e4a7fee Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 14 Jul 2026 17:16:44 +0200 Subject: [PATCH] Turn the local video tile landscape in landscape mobile one-on-one calls --- src/grid/OneOnOneMobileLayout.module.css | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/grid/OneOnOneMobileLayout.module.css b/src/grid/OneOnOneMobileLayout.module.css index 999f504d5..e781726c9 100644 --- a/src/grid/OneOnOneMobileLayout.module.css +++ b/src/grid/OneOnOneMobileLayout.module.css @@ -19,14 +19,28 @@ Please see LICENSE in the repository root for full details. inset: var(--cpd-space-4x); } +/* Give the PiP a landscape aspect ratio */ .pip[data-size="sm"] { - inline-size: 88px; - block-size: 132px; + inline-size: 132px; + block-size: 88px; } .pip[data-size="lg"] { - inline-size: 140px; - block-size: 210px; + inline-size: 210px; + block-size: 140px; +} + +@media (max-width: 600px) { + /* Give the PiP a portrait aspect ratio */ + .pip[data-size="sm"] { + inline-size: 88px; + block-size: 132px; + } + + .pip[data-size="lg"] { + inline-size: 140px; + block-size: 210px; + } } .pip[data-block-alignment="start"] {