Use video aspect ratio on posters

This commit is contained in:
Sam Carlton 2022-09-20 15:10:14 -05:00
parent 7bc7a4b429
commit 08bde562b0

View file

@ -54,7 +54,7 @@ function makeImgAttributes ( src ) {
{ ...makeImgAttributes( images.imgSrc ) }
alt={ video.name }
class={ [
'absolute inset-0 h-full w-full object-cover',
'absolute inset-0 h-full w-full aspect-video object-cover',
loading === 'lazy' ? 'lazyload' : ''
].join(' ') }
width="1600"