diff --git a/crates/librqbit/webui/src/components/Footer.tsx b/crates/librqbit/webui/src/components/Footer.tsx index 21c7dac..762c6d1 100644 --- a/crates/librqbit/webui/src/components/Footer.tsx +++ b/crates/librqbit/webui/src/components/Footer.tsx @@ -2,19 +2,23 @@ import { formatBytes } from "../helper/formatBytes"; import { formatSecondsToTime } from "../helper/formatSecondsToTime"; import { useStatsStore } from "../stores/statsStore"; +const FooterPiece: React.FC<{ children: React.ReactNode }> = ({ children }) => { + return
{children}
; +}; + export const Footer: React.FC<{}> = () => { let stats = useStatsStore((stats) => stats.stats); return ( -
-
+
+ ↓ {stats.download_speed.human_readable} ( {formatBytes(stats.fetched_bytes)}) -
-
+ + ↑ {stats.upload_speed.human_readable} ( {formatBytes(stats.uploaded_bytes)}) -
-
up {formatSecondsToTime(stats.uptime_seconds)}
+ + up {formatSecondsToTime(stats.uptime_seconds)}
); }; diff --git a/crates/librqbit/webui/src/components/TorrentRow.tsx b/crates/librqbit/webui/src/components/TorrentRow.tsx index 0d6421c..c7f3e3e 100644 --- a/crates/librqbit/webui/src/components/TorrentRow.tsx +++ b/crates/librqbit/webui/src/components/TorrentRow.tsx @@ -61,8 +61,8 @@ export const TorrentRow: React.FC<{ detailsResponse?.files .map((f, id) => ({ f, id })) .filter(({ f }) => f.included) - .map(({ id }) => id) ?? [], - ), + .map(({ id }) => id) ?? [] + ) ); }, [detailsResponse]); @@ -87,7 +87,7 @@ export const TorrentRow: React.FC<{ text: "Error configuring torrent", details: e as ErrorDetails, }); - }, + } ) .finally(() => setSavingSelectedFiles(false)); }; @@ -104,7 +104,7 @@ export const TorrentRow: React.FC<{ {detailsResponse && (
{statusIcon("w-5 h-5")}
-
+
{torrentDisplayName(detailsResponse)}
diff --git a/crates/librqbit/webui/src/main.tsx b/crates/librqbit/webui/src/main.tsx index c1d1d1d..6577e91 100644 --- a/crates/librqbit/webui/src/main.tsx +++ b/crates/librqbit/webui/src/main.tsx @@ -13,7 +13,7 @@ const RootWithVersion = () => { API.getVersion().then( (version) => { setVersion(version); - const title = `rqbit web UI - v${version}`; + const title = `rqbit web - v${version}`; document.title = title; return 10000; }, @@ -26,7 +26,7 @@ const RootWithVersion = () => { return ( - + ); };