From ce04eca8904fadc0ae0efd8d64886904b3f4ca90 Mon Sep 17 00:00:00 2001 From: Natalie Bridgers Date: Tue, 14 Jul 2026 16:13:47 -0500 Subject: [PATCH] Force desktop mode for embedded player components Signed-off-by: Natalie Bridgers --- js/app/components/mobile/player.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/app/components/mobile/player.tsx b/js/app/components/mobile/player.tsx index 51558161e..db21b6bb5 100644 --- a/js/app/components/mobile/player.tsx +++ b/js/app/components/mobile/player.tsx @@ -376,7 +376,8 @@ export function PlayerInner( }; }, [width, height]); // should cover full width on mobile? - const isDesktopMode = shouldShowChatSidePanel || screenWidth > 1200; + const isDesktopMode = + !!props.embedded || shouldShowChatSidePanel || screenWidth > 1200; // Calculate optimal height for desktop mode (90% of available height) const maxDesktopHeight = availableHeight * 0.8; @@ -390,7 +391,9 @@ export function PlayerInner( ? Math.min(calculatedWidth / aspectRatio, maxDesktopHeight) : height; - const showFullDesktopMode = aspectRatio > 1 && screenWidth > 1200; + // Embeds are always web/desktop — never switch to MobileUi based on width. + const showFullDesktopMode = + !!props.embedded || (aspectRatio > 1 && screenWidth > 1200); const isLandscape = aspectRatio > 1; // When fullscreen or the device is rotated to landscape, a width-100% + -- 2.51.2