From 5cebe1eb878b7a161950f592e5481f195d0d2fe1 Mon Sep 17 00:00:00 2001 From: Fernando Lucchesi Date: Thu, 14 Sep 2023 10:51:59 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Show=20correct=20aspect=20ratio?= =?UTF-8?q?=20when=20in=20full=20screen=20#1865?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pageComponents/shared/VideoPlayer.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/pageComponents/shared/VideoPlayer.tsx b/web/pageComponents/shared/VideoPlayer.tsx index 08f6e87aa..35c07a37b 100644 --- a/web/pageComponents/shared/VideoPlayer.tsx +++ b/web/pageComponents/shared/VideoPlayer.tsx @@ -87,6 +87,10 @@ const ButtonWrapper = styled.div` const StyledHLSPlayer = styled(HLSPlayer)` object-fit: cover; width: inherit; + + :fullscreen { + object-fit: contain; + } ` const getThumbnailRatio = (aspectRatio: string, height?: number) => {