Update better-xcloud.user.js

This commit is contained in:
redphx 2024-06-03 15:52:55 +07:00
parent 44cf4f1d19
commit 9f1f28a2d7

View File

@ -5246,7 +5246,7 @@ var resizeVideoPlayer = function() {
height = Math.min(parentRect.height, Math.ceil(height)); height = Math.min(parentRect.height, Math.ceil(height));
$video.style.width = `${width}px`; $video.style.width = `${width}px`;
$video.style.height = `${height}px`; $video.style.height = `${height}px`;
$video.style.objectFit = "contain"; $video.style.objectFit = PREF_RATIO === "16:9" ? "contain" : "fill";
} else { } else {
$video.style.width = "100%"; $video.style.width = "100%";
$video.style.height = "100%"; $video.style.height = "100%";