From 44cf4f1d19d74e715e2d49570723c3cc8596cf0b Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:52:52 +0700 Subject: [PATCH] Fix video ratio not working properly --- 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 b6fdd76..2db9cf6 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 = 'contain'; + $video.style.objectFit = PREF_RATIO === '16:9' ? 'contain' : 'fill'; } else { $video.style.width = '100%'; $video.style.height = '100%';