From 69b814d235f84a8d739ae138757c08f521629bdf Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 16 Jan 2025 00:57:44 +0000 Subject: [PATCH] improve aspect ratio --- src/screens/Feeds/VibeScreen.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/screens/Feeds/VibeScreen.tsx b/src/screens/Feeds/VibeScreen.tsx index 6bc5da071b..349ec7416d 100644 --- a/src/screens/Feeds/VibeScreen.tsx +++ b/src/screens/Feeds/VibeScreen.tsx @@ -265,15 +265,11 @@ function VibeItem({ const {height, width} = useWindowDimensions() const insets = useSafeAreaInsets() - const screenAspectRatio = - (width - insets.left - insets.right) / (height - insets.bottom) - const videoAspectRatio = (embed.aspectRatio?.width ?? 1) / (embed.aspectRatio?.height ?? 1) - // if the video is either taller, on only 20% shorter than the screen, - // set the video to be cover rather than contain - const isCloseEnough = videoAspectRatio < screenAspectRatio * 1.2 + // if the video tall enough (tiktok/reels are 9:16) go cover mode + const isCloseEnough = false && videoAspectRatio <= 9 / 16 const {status} = useEvent(player, 'statusChange', {status: player.status}) @@ -491,10 +487,7 @@ function ExpandableRichTextView({