From 758501bcd3d292445fd3783f0e25e03ed55c521f Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 1 Jun 2024 10:12:45 +0700 Subject: [PATCH] Change objectFit to "contain" --- src/modules/ui/ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ui/ui.ts b/src/modules/ui/ui.ts index f21ecb5..b6fdd76 100644 --- a/src/modules/ui/ui.ts +++ b/src/modules/ui/ui.ts @@ -492,7 +492,7 @@ function resizeVideoPlayer() { // Update size $video.style.width = `${width}px`; $video.style.height = `${height}px`; - $video.style.objectFit = 'fill'; + $video.style.objectFit = 'contain'; } else { $video.style.width = '100%'; $video.style.height = '100%';