From 08bde562b0b48998fb418dcb99f0e39d27745709 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 20 Sep 2022 15:10:14 -0500 Subject: [PATCH] Use video aspect ratio on posters --- src/components/video/poster.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/video/poster.astro b/src/components/video/poster.astro index 613fcf3..377b3aa 100644 --- a/src/components/video/poster.astro +++ b/src/components/video/poster.astro @@ -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"