Skip to content

Commit dc0362a

Browse files
committed
Flip aspect ratio? Nah, that shouldn't work!
Or does it...?
1 parent 1482365 commit dc0362a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/GifCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const sizeKB = Math.round(gif.size / 1024);
2626
{
2727
downloadable ? (
2828
<a href={gif.src} download={`${gif.title}.gif`}>
29-
<div class={`h-50 md:h-100 ${force34 ? "aspect-3/4" : ""}`}>
29+
<div class={`h-50 md:h-100 ${force34 ? "aspect-4/3" : ""}`}>
3030
<Image
3131
src={gif.image}
3232
alt=""
@@ -39,7 +39,7 @@ const sizeKB = Math.round(gif.size / 1024);
3939
</div>
4040
</a>
4141
) : (
42-
<div class={`h-50 md:h-100 ${force34 ? "aspect-3/4" : ""}`}>
42+
<div class={`h-50 md:h-100 ${force34 ? "aspect-4/3" : ""}`}>
4343
<Image
4444
src={gif.image}
4545
alt=""

0 commit comments

Comments
 (0)