Probably fix aspect ratio issue

This commit is contained in:
Jip Fr 2023-11-09 15:29:57 +01:00
parent 207a02e1f6
commit b2608505f8

View File

@ -61,7 +61,7 @@ function MediaCardContent({
>
<div
className={[
"relative mb-4 aspect-[2/3] w-full overflow-hidden rounded-xl bg-mediaCard-hoverBackground bg-cover bg-center transition-[border-radius] duration-100",
"relative mb-4 pb-[150%] w-full overflow-hidden rounded-xl bg-mediaCard-hoverBackground bg-cover bg-center transition-[border-radius] duration-100",
closable ? "" : "group-hover:rounded-lg",
].join(" ")}
style={{