Add sqaure cards #24, fix cards in login page
This commit is contained in:
7 files changed
+83
-146
No files matched your search
@@ -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>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in new issue
Block a user