mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Fix video ratio not working properly
This commit is contained in:
@@ -492,7 +492,7 @@ function resizeVideoPlayer() {
|
|||||||
// Update size
|
// Update size
|
||||||
$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