diff --git a/src/client/components/Library/Library.tsx b/src/client/components/Library/Library.tsx index 42f40f7..304ed0d 100644 --- a/src/client/components/Library/Library.tsx +++ b/src/client/components/Library/Library.tsx @@ -53,39 +53,37 @@ export const Library = (): ReactElement => { const ComicInfoXML = (value) => { return value.data ? ( -
-
- - Series - - {ellipsize(value.data.series[0], 25)} - +
+ + + -
-
-
-
- - Pages - - {value.data.pagecount[0]} - + + {ellipsize(value.data.series[0], 45)} + + +
+
+ + Pages + + {value.data.pagecount[0]} -
- -
- - Issue - {!isNil(value.data.number) && ( - - {parseInt(value.data.number[0], 10)} - - )} - -
+
-
-
+ +
+ + Issue + {!isNil(value.data.number) && ( + + {parseInt(value.data.number[0], 10)} + + )} + +
+ + ) : null; }; @@ -110,13 +108,11 @@ export const Library = (): ReactElement => { { header: "ComicInfo.xml", accessorKey: "_source.sourcedMetadata.comicInfo", - align: "center", - minWidth: 250, cell: (info) => !isEmpty(info.getValue()) ? ( ) : ( - No ComicInfo.xml + No ComicInfo.xml ), }, ], @@ -128,12 +124,10 @@ export const Library = (): ReactElement => { header: "Publisher", accessorKey: "_source.sourcedMetadata.comicvine.volumeInformation", cell: (info) => { - return ( - !isNil(info.getValue()) && ( -
- {info.getValue().publisher.name} -
- ) + return !isNil(info.getValue()) ? ( +
{info.getValue().publisher.name}
+ ) : ( + "Chimin" ); }, }, diff --git a/src/client/components/shared/Carda.tsx b/src/client/components/shared/Carda.tsx index 315ba8e..a162620 100644 --- a/src/client/components/shared/Carda.tsx +++ b/src/client/components/shared/Carda.tsx @@ -141,11 +141,23 @@ const renderCard = (props: ICardProps): ReactElement => { return ( <> {/* thumbnail */} -
+
); + case "card-with-info-panel": + return ( + <> +
+ {/* thumbnail */} +
+ +
+ {/* myata-dyata */} +
+ + ); default: return <>; diff --git a/src/client/components/shared/MetadataPanel.tsx b/src/client/components/shared/MetadataPanel.tsx index 8fb5e3c..82078b5 100644 --- a/src/client/components/shared/MetadataPanel.tsx +++ b/src/client/components/shared/MetadataPanel.tsx @@ -31,61 +31,49 @@ export const MetadataPanel = (props: IMetadatPanelProps): ReactElement => { { name: "rawFileDetails", content: () => ( -
+
-
- {issueName} -
+

{issueName}

-
- Is a part of{" "} - - {inferredMetadata.issue.name} - +
+ Is a part of {inferredMetadata.issue.name}
-
-
-
- - - {rawFileDetails.extension} - - - {rawFileDetails.mimeType} - - - {prettyBytes(rawFileDetails.fileSize)} - + {/* Issue number */} + {inferredMetadata.issue.number && ( +
+ + + -
-
- {inferredMetadata.issue.number && ( -
- - Issue # - - - {inferredMetadata.issue.number} - -
- )} -
+ + {inferredMetadata.issue.number} + + + + )} +
+ {/* File extension */} + + + + - - + + {rawFileDetails.mimeType} + + + + {/* size */} + + + + + + + {prettyBytes(rawFileDetails.fileSize)} + +
), @@ -208,25 +196,14 @@ export const MetadataPanel = (props: IMetadatPanelProps): ReactElement => { }); return ( -
-
-
-
-
-
- -
-
{metadataPanel.content()}
-
-
-
-
+
+ +
{metadataPanel.content()}
); }; diff --git a/src/client/components/shared/T2Table.tsx b/src/client/components/shared/T2Table.tsx index 26fc835..5fdd9fe 100644 --- a/src/client/components/shared/T2Table.tsx +++ b/src/client/components/shared/T2Table.tsx @@ -126,14 +126,14 @@ export const T2Table = (tableOptions): ReactElement => {
- + {table.getHeaderGroups().map((headerGroup, idx) => ( {headerGroup.headers.map((header, idx) => ( rowClickHandler(row)}> - {row.getVisibleCells().map((cell) => ( - - ))} + {row.getVisibleCells().map((cell) => { + return ( + + ); + })} ); })}
{header.isPlaceholder ? null @@ -151,11 +151,16 @@ export const T2Table = (tableOptions): ReactElement => { {table.getRowModel().rows.map((row, idx) => { return (
- {flexRender(cell.column.columnDef.cell, cell.getContext())} - + {flexRender( + cell.column.columnDef.cell, + cell.getContext(), + )} +