From c25dc40dac17a7f5720c7f6c82bfce5122e2c986 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 15 Jan 2024 22:52:35 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20Fixed=20volume=20group?= =?UTF-8?q?=20card=20stacks=20on=20Dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/Dashboard/Dashboard.tsx | 2 +- .../components/Dashboard/VolumeGroups.tsx | 50 +++++++++++-------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/src/client/components/Dashboard/Dashboard.tsx b/src/client/components/Dashboard/Dashboard.tsx index dc6e357..9974aae 100644 --- a/src/client/components/Dashboard/Dashboard.tsx +++ b/src/client/components/Dashboard/Dashboard.tsx @@ -202,7 +202,7 @@ export const Dashboard = (): ReactElement => { {/* Volume groups */} - + ); }; diff --git a/src/client/components/Dashboard/VolumeGroups.tsx b/src/client/components/Dashboard/VolumeGroups.tsx index 840d2de..944526b 100644 --- a/src/client/components/Dashboard/VolumeGroups.tsx +++ b/src/client/components/Dashboard/VolumeGroups.tsx @@ -2,7 +2,7 @@ import { map, unionBy } from "lodash"; import React, { ReactElement } from "react"; import ellipsize from "ellipsize"; import { Link, useNavigate } from "react-router-dom"; -import Masonry from "react-masonry-css"; +import Card from "../shared/Carda"; export const VolumeGroups = (props): ReactElement => { const breakpointColumnsObj = { @@ -18,7 +18,6 @@ export const VolumeGroups = (props): ReactElement => { navigate(`/volumes/all`); }; - console.log(props); return (
@@ -32,32 +31,39 @@ export const VolumeGroups = (props): ReactElement => {

Based on ComicVine Volume information

- +
{map(deduplicatedGroups, (data) => { return ( -
- -
-
- - {ellipsize(data.volumes.name, 18)} - +
+ +
+
+ + {ellipsize(data.volumes.name, 18)} + +
+
+ + Issues + + {data.volumes.count_of_issues} + + +
-
- - Issues - {data.volumes.count_of_issues} - -
-
+ +
+
+
); })} - +
); };