added german, code refactoring

This commit is contained in:
2023-12-30 11:06:00 +01:00
parent 1b46f0dd03
commit de1d9e6a3c
3 changed files with 9 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ languages:
clipboardAction: URL copiato negli appunti
playlistCheckbox: Download playlist (richiederà tempo, puoi chiudere la finestra dopo l'inoltro)
restartAppMessage: La finestra deve essere ricaricata perché abbia effetto
servedFromReverseProxyCheckbox: Is behind a reverse proxy subfolder
servedFromReverseProxyCheckbox: Is behind a reverse proxy
newDownloadButton: Nuovo download
homeButtonLabel: Home
archiveButtonLabel: Archive

View File

@@ -12,6 +12,7 @@ export const languages = [
'catalan',
'ukrainian',
'polish',
'german'
] as const
export type Language = (typeof languages)[number]

View File

@@ -27,9 +27,14 @@ const DownloadsListView: React.FC = () => {
return (
<Grid container spacing={{ xs: 2, md: 2 }} columns={{ xs: 4, sm: 8, md: 12 }} pt={2}>
<Grid item xs={12}>
<TableContainer component={Paper} sx={{ minHeight: '100%' }} elevation={2}>
<TableContainer
component={Paper}
sx={{ minHeight: '100%' }}
elevation={2}
hidden={downloads.length === 0}
>
<Table>
<TableHead hidden={downloads.length === 0}>
<TableHead>
<TableRow>
<TableCell>
<Typography fontWeight={500} fontSize={15}>Title</Typography>