forked from Cavemanon/cavepaintings
Added object-fit style to video handler poster to allow better scaling when using exact-size-only thumbs
This commit is contained in:
@@ -61,7 +61,7 @@ class VideoFileHandlerTheme extends Themelet
|
|||||||
|
|
||||||
$html .= "
|
$html .= "
|
||||||
<video controls class='shm-main-image' id='main_image' alt='main image' poster='$thumb_url' {$autoplay} {$loop} {$mute}
|
<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}'>
|
<source src='{$ilink}' type='{$mime}'>
|
||||||
|
|
||||||
<!-- If browser doesn't support filetype, fallback to flash -->
|
<!-- If browser doesn't support filetype, fallback to flash -->
|
||||||
|
Reference in New Issue
Block a user