mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Fix video ratio not working properly
This commit is contained in:
parent
bb20f408a3
commit
44cf4f1d19
@ -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%';
|
||||
|
Loading…
x
Reference in New Issue
Block a user