From 45c43d7cf56f88ba3c137f9bd7e3011d8cd7b5fd Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 12 Dec 2022 05:28:44 -0700 Subject: [PATCH] UI Cleanup & Optimization (#4673) * Use prewrap so vainfo output appears normalized * Move copy button to top so user doesn't need to scroll to copy logs * Show calculating if no value for stream bandwidth --- web/src/routes/Logs.jsx | 7 ++++--- web/src/routes/Storage.jsx | 2 +- web/src/routes/System.jsx | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/src/routes/Logs.jsx b/web/src/routes/Logs.jsx index b48ae187d..99c0462ed 100644 --- a/web/src/routes/Logs.jsx +++ b/web/src/routes/Logs.jsx @@ -40,12 +40,13 @@ export default function Logs() { -
- {logs} -
+ +
+ {logs} +
); } diff --git a/web/src/routes/Storage.jsx b/web/src/routes/Storage.jsx index 213d70a4c..ff2602f7d 100644 --- a/web/src/routes/Storage.jsx +++ b/web/src/routes/Storage.jsx @@ -97,7 +97,7 @@ export default function Storage() { {Math.round(camera['usage_percent'] ?? 0)}% - {camera['bandwidth']} MB/hr + {camera['bandwidth'] ? camera['bandwidth'] : "Calculating..."} MB/hr diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index 9f923bbc7..df21508b8 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -114,7 +114,7 @@ export default function System() { )} -
+