diff --git a/web/src/components/about.tsx b/web/src/components/about.tsx index 3b03430..c15cd40 100644 --- a/web/src/components/about.tsx +++ b/web/src/components/about.tsx @@ -50,7 +50,8 @@ export default function About() { About This Project - A simple telegram file downloader. + A self-hosted Telegram file downloader for continuous, stable, and + unattended downloads. diff --git a/web/src/components/file-extra.tsx b/web/src/components/file-extra.tsx index 8ee5371..251f579 100644 --- a/web/src/components/file-extra.tsx +++ b/web/src/components/file-extra.tsx @@ -33,8 +33,8 @@ function FileName({ file }: { file: TelegramFile }) { return (

- - + + {file.fileName}

@@ -109,13 +109,14 @@ function FilePath({ file }: { file: TelegramFile }) { } function FileTime({ file }: { file: TelegramFile }) { + const isMobile = useIsMobile(); return (

- - + + {formatDistanceToNow(new Date(file.date * 1000), { addSuffix: true, })} @@ -128,7 +129,7 @@ function FileTime({ file }: { file: TelegramFile }) {

- {file.completionDate && ( + {!isMobile && file.completionDate && (

diff --git a/web/src/components/file-filters.tsx b/web/src/components/file-filters.tsx index 93f485b..704deef 100644 --- a/web/src/components/file-filters.tsx +++ b/web/src/components/file-filters.tsx @@ -129,7 +129,7 @@ export function FileFilters({ }, [search, handleSearchChange]); return ( -

+
= ({ telegramId }) => {
-

+

Speed Statistics diff --git a/web/src/components/file-status.tsx b/web/src/components/file-status.tsx index 74d20e9..c2a1796 100644 --- a/web/src/components/file-status.tsx +++ b/web/src/components/file-status.tsx @@ -12,6 +12,7 @@ import { Pause, XCircle, } from "lucide-react"; +import useIsMobile from "@/hooks/use-is-mobile"; export const DOWNLOAD_STATUS = { idle: { @@ -80,6 +81,7 @@ export default function FileStatus({ }, exit: { opacity: 0, scale: 0.9, transition: { duration: 0.2 } }, }; + const isMobile = useIsMobile(); return (
{DOWNLOAD_STATUS[file.downloadStatus].text} diff --git a/web/src/components/header.tsx b/web/src/components/header.tsx index 68c4dcb..02a51a3 100644 --- a/web/src/components/header.tsx +++ b/web/src/components/header.tsx @@ -47,7 +47,7 @@ export function Header() { return ( -
+
diff --git a/web/src/components/proxy-ping.tsx b/web/src/components/proxy-ping.tsx index 71efccb..d349302 100644 --- a/web/src/components/proxy-ping.tsx +++ b/web/src/components/proxy-ping.tsx @@ -30,7 +30,9 @@ export default function ProxyPing({ accountId }: { accountId: string }) { > {isLoading && ( -
+
+ testing +
)} {!isLoading && error && Failed} {!isLoading && data && ( diff --git a/web/src/components/settings-dialog.tsx b/web/src/components/settings-dialog.tsx index fe342b9..246e1a6 100644 --- a/web/src/components/settings-dialog.tsx +++ b/web/src/components/settings-dialog.tsx @@ -47,7 +47,7 @@ export const SettingsDialog: React.FC = () => { defaultValue="general" className="mt-3 flex h-full flex-col overflow-hidden" > - + General Statistics Proxys diff --git a/web/src/components/ui/toaster.tsx b/web/src/components/ui/toaster.tsx index deee0d7..07e8165 100644 --- a/web/src/components/ui/toaster.tsx +++ b/web/src/components/ui/toaster.tsx @@ -9,12 +9,14 @@ import { ToastTitle, ToastViewport, } from "@/components/ui/toast"; +import useIsMobile from "@/hooks/use-is-mobile"; export function Toaster() { const { toasts } = useToast(); + const isMobile = useIsMobile(); return ( - + {toasts.map(function ({ id, title, description, action, ...props }) { return (