diff --git a/frontend/src/components/DownloadsTableView.tsx b/frontend/src/components/DownloadsTableView.tsx index 7553e93..73b9813 100644 --- a/frontend/src/components/DownloadsTableView.tsx +++ b/frontend/src/components/DownloadsTableView.tsx @@ -1,6 +1,9 @@ +import DeleteIcon from '@mui/icons-material/Delete' +import DownloadIcon from '@mui/icons-material/Download' +import DownloadDoneIcon from '@mui/icons-material/DownloadDone' +import StopCircleIcon from '@mui/icons-material/StopCircle' import { Box, - Button, Grid, IconButton, LinearProgress, @@ -17,11 +20,7 @@ import { import { useRecoilValue } from 'recoil' import { activeDownloadsState } from '../atoms/downloads' import { useRPC } from '../hooks/useRPC' -import { ellipsis, formatSpeedMiB, formatSize } from "../utils" -import DownloadIcon from '@mui/icons-material/Download' -import DownloadDoneIcon from '@mui/icons-material/DownloadDone' -import StopCircleIcon from '@mui/icons-material/StopCircle' -import DeleteIcon from '@mui/icons-material/Delete' +import { formatSize, formatSpeedMiB } from "../utils" function LinearProgressWithLabel(props: LinearProgressProps & { value: number }) { return ( @@ -38,7 +37,7 @@ function LinearProgressWithLabel(props: LinearProgressProps & { value: number }) ) } -const DownloadsListView: React.FC = () => { +const DownloadsTableView: React.FC = () => { const downloads = useRecoilValue(activeDownloadsState) const { client } = useRPC() @@ -90,7 +89,7 @@ const DownloadsListView: React.FC = () => { : } - {ellipsis(download.info.title, 75)} + {download.info.title} {formatSpeedMiB(download.progress.speed)} { ) } -export default DownloadsListView \ No newline at end of file +export default DownloadsTableView \ No newline at end of file diff --git a/frontend/src/components/Footer.tsx b/frontend/src/components/Footer.tsx index 698535a..f94c567 100644 --- a/frontend/src/components/Footer.tsx +++ b/frontend/src/components/Footer.tsx @@ -1,5 +1,5 @@ import SettingsEthernet from '@mui/icons-material/SettingsEthernet' -import { AppBar, Toolbar } from '@mui/material' +import { AppBar, Chip, Divider, Toolbar } from '@mui/material' import { Suspense } from 'react' import { useRecoilValue } from 'recoil' import { settingsState } from '../atoms/settings' @@ -30,17 +30,17 @@ const Footer: React.FC = () => { fontSize: 14, display: 'flex', gap: 1, justifyContent: 'space-between' }}> -
-
RPC v3.0.6
-
+
+ +
-
+
@@ -48,6 +48,7 @@ const Footer: React.FC = () => { {isConnected ? settings.serverAddr : i18n.t('notConnectedText')}
+ diff --git a/frontend/src/components/VersionIndicator.tsx b/frontend/src/components/VersionIndicator.tsx index 9c6fd5c..0786e1d 100644 --- a/frontend/src/components/VersionIndicator.tsx +++ b/frontend/src/components/VersionIndicator.tsx @@ -1,7 +1,7 @@ +import { Chip, CircularProgress } from '@mui/material' import { useEffect, useState } from 'react' import { useRecoilValue } from 'recoil' import { serverURL } from '../atoms/settings' -import { CircularProgress } from '@mui/material' import { useToast } from '../hooks/toast' const VersionIndicator: React.FC = () => { @@ -26,7 +26,7 @@ const VersionIndicator: React.FC = () => { return ( version - ?
yt-dlp v{version}
+ ? : ) }