Add sqaure cards #24, fix cards in login page

This commit is contained in:
prayag17 committed 2023-03-28 11:26:24 +05:30
1 parent aebea6a3b2
commit f12d92f42c
7 files changed
+83 -146

No files matched your search

+11 -3
View File
@@ -49,7 +49,9 @@ export const Card = ({
aspectRatio:
cardOrientation == "landscape"
? "1.777"
: "0.666",
: cardOrientation == "portait"
? "0.666"
: "1",
}}
>
{imageTags &&
@@ -68,7 +70,10 @@ export const Card = ({
aspectRatio:
cardOrientation == "landscape"
? "1.777"
: "0.666",
: cardOrientation ==
"portait"
? "0.666"
: "1",
}}
className="card-image"
></CardMedia>
@@ -87,7 +92,10 @@ export const Card = ({
aspectRatio:
cardOrientation == "landscape"
? "1.777"
: "0.666",
: cardOrientation ==
"portait"
? "0.666"
: "1",
}}
className="card-image"
></CardMedia>
@@ -60,7 +60,11 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
playedPercent={
item.UserData.PlayedPercentage
}
cardOrientation="portait"
cardOrientation={
item.PrimaryImageAspectRatio == 1
? "sqaure"
: "portait"
}
></Card>
);
})}