diff --git a/src/client/components/ComicDetail/AcquisitionPanel.tsx b/src/client/components/ComicDetail/AcquisitionPanel.tsx index 5ba8c24..657e0ef 100644 --- a/src/client/components/ComicDetail/AcquisitionPanel.tsx +++ b/src/client/components/ComicDetail/AcquisitionPanel.tsx @@ -294,25 +294,25 @@ export const AcquisitionPanel = ( {/* AirDC++ results */}
{!isNil(airDCPPSearchResults) && !isEmpty(airDCPPSearchResults) ? ( -
- +
+
- - + - - - - + {map( airDCPPSearchResults, ({ dupe, type, name, id, slots, users, size }, idx) => ( @@ -320,8 +320,8 @@ export const AcquisitionPanel = ( key={idx} className={ !isNil(dupe) - ? "bg-gray-100 dark:bg-gray-700" - : "text-sm" + ? "border-b border-gray-200 dark:border-slate-700 bg-gray-100 dark:bg-gray-700" + : "border-b border-gray-200 dark:border-slate-700 text-sm" } > {/* NAME */} diff --git a/src/client/components/ComicDetail/AirDCPPBundles.tsx b/src/client/components/ComicDetail/AirDCPPBundles.tsx index a588963..8691026 100644 --- a/src/client/components/ComicDetail/AirDCPPBundles.tsx +++ b/src/client/components/ComicDetail/AirDCPPBundles.tsx @@ -3,46 +3,55 @@ import prettyBytes from "pretty-bytes"; import dayjs from "dayjs"; import ellipsize from "ellipsize"; import { map } from "lodash"; -import {DownloadProgressTick} from "./DownloadProgressTick" +import { DownloadProgressTick } from "./DownloadProgressTick"; export const AirDCPPBundles = (props) => { return ( -
-
+
Name + Type + Slots + Actions
+
+
- - + - - - - - {map(props.data, (bundle) => ( - - + {map(props.data, (bundle, index) => ( + + - - - ))} diff --git a/src/client/components/ComicDetail/DownloadProgressTick.tsx b/src/client/components/ComicDetail/DownloadProgressTick.tsx index 8f7bd24..59fb02c 100644 --- a/src/client/components/ComicDetail/DownloadProgressTick.tsx +++ b/src/client/components/ComicDetail/DownloadProgressTick.tsx @@ -91,7 +91,7 @@ export const DownloadProgressTick: React.FC = ({ }, [socketRef, bundleId]); if (!tick) { - return null; + return <>Nothing detected.; } // Compute human-readable values and percentages @@ -105,9 +105,6 @@ export const DownloadProgressTick: React.FC = ({ return (
- {/* File name */} -
{tick.name}
- {/* Downloaded vs Total */}
{downloaded} of {total} @@ -123,7 +120,7 @@ export const DownloadProgressTick: React.FC = ({
{percent}% complete
{/* Speed and Time Left */} -
+
Speed: {speed} Time left: {minutesLeft} min
+
Filename + Size - Download Time + + Download Status + Bundle ID
-
{ellipsize(bundle.name, 58)}
- {ellipsize(bundle.target, 88)} +
+
+ {ellipsize(bundle.name, 58)} +
+

+ {ellipsize(bundle.target, 88)} +

+ {prettyBytes(bundle.size)} - {dayjs - .unix(bundle.time_finished) - .format("h:mm on ddd, D MMM, YYYY")} - {/* Download progress */} - + + - {bundle.id} + + + {bundle.id} +