mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-10-26 11:34:03 +01:00
Update better-xcloud.user.js
This commit is contained in:
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@@ -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%";
|
||||||
|
|||||||
Reference in New Issue
Block a user