From 72a308801d0ac269f2aae2b193d77af6cb3e6652 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 11 Dec 2023 14:14:06 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20Added=20a=20horizontal?= =?UTF-8?q?=20medium=20variant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/Dashboard/Dashboard.tsx | 13 ++++++++++-- src/client/components/shared/Carda.tsx | 21 +++++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/client/components/Dashboard/Dashboard.tsx b/src/client/components/Dashboard/Dashboard.tsx index 3620993..d247b17 100644 --- a/src/client/components/Dashboard/Dashboard.tsx +++ b/src/client/components/Dashboard/Dashboard.tsx @@ -88,7 +88,7 @@ export const Dashboard = (): ReactElement => {
{recentComics?.data.docs.map((recentComic, idx) => ( { >
Address
-
+
@@ -105,6 +105,15 @@ export const Dashboard = (): ReactElement => { {recentComic.inferredMetadata.issue.number} + + + + + + + {recentComic.rawFileDetails.extension} + +
diff --git a/src/client/components/shared/Carda.tsx b/src/client/components/shared/Carda.tsx index 7771ed9..a70c58f 100644 --- a/src/client/components/shared/Carda.tsx +++ b/src/client/components/shared/Carda.tsx @@ -107,19 +107,36 @@ const renderCard = (props: ICardProps): ReactElement => { case "horizontal-2-small": return ( <> -
+
{/* thumbnail */}
{/* details */} -
+

{props.title}

nothin
); + + case "horizontal-2-medium": + return ( + <> +
+ {/* thumbnail */} +
+ +
+ {/* details */} +
+

{props.title}

+ {props.hasDetails && <>{props.children}} +
+
+ + ); default: return <>; }