Added object-fit style to video handler poster to allow better scaling when using exact-size-only thumbs

This commit is contained in:
Matthew Barbour 2020-06-24 08:15:23 -05:00 committed by Shish
parent 846d978a52
commit e61bbbe03d

View File

@ -61,7 +61,7 @@ class VideoFileHandlerTheme extends Themelet
$html .= "
<video controls class='shm-main-image' id='main_image' alt='main image' poster='$thumb_url' {$autoplay} {$loop} {$mute}
style='height: $height; width: $width; max-width: 100%'>
style='height: $height; width: $width; max-width: 100%; object-fit: cover;'>
<source src='{$ilink}' type='{$mime}'>
<!-- If browser doesn't support filetype, fallback to flash -->