Fix subtitle image upscaling in fullscreen mode
Server renders image subtitles at 0.5 scale to reduce memory, but the client-side CSS was limiting the image height to 35% and using maxWidth/ maxHeight constraints. This prevented the downscaled frames from properly upscaling to fill the video player in fullscreen mode. Changed the overlay image styling from restrictive max-constraints to explicit width and height values: - width: 100% (was maxWidth: 100%) forces image to fill container width - height: auto (was maxHeight: 35%) allows proportional upscaling - Combined with server placement headers, this allows reduced-resolution frames to stretch and fill the display correctly in any mode.
@@ -755,8 +755,8 @@ function bindImageSubtitleOverlay (player, videojs, prefs, session, item)
755
755
overlayImgEl = document.createElement('img');
756
756
overlayImgEl.alt = 'Image subtitles';
757
757
overlayImgEl.style.display = 'none';
758
overlayImgEl.style.maxWidth = '100%';
759
overlayImgEl.style.maxHeight = '35%';
758
overlayImgEl.style.width = '100%';
759
overlayImgEl.style.height = 'auto';
760
760
overlayImgEl.style.margin = '0 auto';
761
761
overlayImgEl.style.objectFit = 'contain';
762
762
overlayImgEl.style.filter = 'drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7))';
@@ -755,8 +755,8 @@ function bindImageSubtitleOverlay (player, videojs, prefs, session, item)755
overlayImgEl = document.createElement('img');755
overlayImgEl = document.createElement('img');756
overlayImgEl.alt = 'Image subtitles';756
overlayImgEl.alt = 'Image subtitles';757
overlayImgEl.style.display = 'none';757
overlayImgEl.style.display = 'none';758
overlayImgEl.style.maxWidth = '100%';758
overlayImgEl.style.width = '100%';759
overlayImgEl.style.maxHeight = '35%';759
overlayImgEl.style.height = 'auto';760
overlayImgEl.style.margin = '0 auto';760
overlayImgEl.style.margin = '0 auto';761
overlayImgEl.style.objectFit = 'contain';761
overlayImgEl.style.objectFit = 'contain';762
overlayImgEl.style.filter = 'drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7))';762
overlayImgEl.style.filter = 'drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7))';