From 5e6c679465f02bb45fda937cd497c9025de6edbe Mon Sep 17 00:00:00 2001 From: David Anyatonwu Date: Fri, 27 Dec 2024 21:12:00 +0100 Subject: [PATCH] Refactor UI components for video metadata display; adjust font sizes and layout for consistency --- apps/desktop/src/routes/editor/Header.tsx | 12 ++++++------ apps/desktop/src/routes/recordings-overlay.tsx | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/desktop/src/routes/editor/Header.tsx b/apps/desktop/src/routes/editor/Header.tsx index af0ada06..cdd3becd 100644 --- a/apps/desktop/src/routes/editor/Header.tsx +++ b/apps/desktop/src/routes/editor/Header.tsx @@ -333,21 +333,21 @@ function ExportButton() { {(meta) => ( -
+
- + {Math.floor(meta().duration / 60)}:{Math.floor(meta().duration % 60) .toString() .padStart(2, "0")} -
+
- + {meta().size.toFixed(2)} MB -
+
- + ~{Math.floor(meta().estimatedExportTime / 60)}:{Math.floor(meta().estimatedExportTime % 60) .toString() .padStart(2, "0")} diff --git a/apps/desktop/src/routes/recordings-overlay.tsx b/apps/desktop/src/routes/recordings-overlay.tsx index 456f305e..2a7efce4 100644 --- a/apps/desktop/src/routes/recordings-overlay.tsx +++ b/apps/desktop/src/routes/recordings-overlay.tsx @@ -577,31 +577,31 @@ export default function () {
-

+

- + {Math.floor(metadata().duration / 60)}: {Math.floor(metadata().duration % 60) .toString() .padStart(2, "0")} - + {metadata().size.toFixed(2)} MB - + ~{Math.floor(metadata().estimatedExportTime / 60)}: {Math.floor(metadata().estimatedExportTime % 60) .toString()