mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Update better-xcloud.user.js
This commit is contained in:
parent
44cf4f1d19
commit
9f1f28a2d7
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%";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user