From 7ece395d1bc97e91e7241870f525f900f24160ee Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 25 Oct 2025 14:49:14 +0200 Subject: [PATCH] smaller table for dialog --- interface/src/app/status/Version.tsx | 97 ++++++++++++++++++++-------- interface/src/i18n/cz/index.ts | 3 +- interface/src/i18n/de/index.ts | 3 +- interface/src/i18n/en/index.ts | 3 +- interface/src/i18n/fr/index.ts | 3 +- interface/src/i18n/it/index.ts | 3 +- interface/src/i18n/nl/index.ts | 3 +- interface/src/i18n/no/index.ts | 3 +- interface/src/i18n/pl/index.ts | 3 +- interface/src/i18n/sk/index.ts | 3 +- interface/src/i18n/sv/index.ts | 3 +- interface/src/i18n/tr/index.ts | 3 +- 12 files changed, 91 insertions(+), 39 deletions(-) diff --git a/interface/src/app/status/Version.tsx b/interface/src/app/status/Version.tsx index 87dd1c2f4..584ac975b 100644 --- a/interface/src/app/status/Version.tsx +++ b/interface/src/app/status/Version.tsx @@ -19,9 +19,10 @@ import { Grid, IconButton, Link, - List, - ListItem, - ListItemText, + Table, + TableBody, + TableCell, + TableRow, Typography } from '@mui/material'; @@ -41,6 +42,7 @@ import { } from 'components'; import { AuthenticatedContext } from 'contexts/authentication'; import { useI18nContext } from 'i18n/i18n-react'; +import type { TranslationFunctions } from 'i18n/i18n-types'; import { prettyDateTime } from 'utils/time'; // Constants moved outside component to avoid recreation @@ -86,7 +88,7 @@ const VersionInfoDialog = memo( latestVersion?: VersionInfo; latestDevVersion?: VersionInfo; locale: string; - LL: any; + LL: TranslationFunctions; onClose: () => void; }) => { if (showVersionInfo === 0) return null; @@ -97,30 +99,69 @@ const VersionInfoDialog = memo( return ( - Version Information + {LL.FIRMWARE_VERSION_INFO()} - - - {LL.TYPE(0)}} - secondary={isStable ? LL.STABLE() : LL.DEVELOPMENT()} - /> - - - {LL.VERSION()}} - secondary={version?.name} - /> - - {version?.published_at && ( - - Release Date} - secondary={prettyDateTime(locale, new Date(version.published_at))} - /> - - )} - + + + + + {LL.TYPE(0)} + + + {isStable ? LL.STABLE() : LL.DEVELOPMENT()} + + + + + {LL.VERSION()} + + + {version?.name} + + + {version?.published_at && ( + + + Build Date + + + {prettyDateTime(locale, new Date(version.published_at))} + + + )} + +