mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 15:16:05 +00:00
Probably fix aspect ratio issue
This commit is contained in:
parent
207a02e1f6
commit
b2608505f8
|
@ -61,7 +61,7 @@ function MediaCardContent({
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={[
|
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",
|
closable ? "" : "group-hover:rounded-lg",
|
||||||
].join(" ")}
|
].join(" ")}
|
||||||
style={{
|
style={{
|
||||||
|
|
Loading…
Reference in a new issue