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
This commit is contained in:
Nicolas Mowen
2022-12-12 05:28:44 -07:00
committed by GitHub
parent 037f3761e7
commit 45c43d7cf5
3 changed files with 6 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ export default function Storage() {
<Tbody>
<Tr>
<Td>{Math.round(camera['usage_percent'] ?? 0)}%</Td>
<Td>{camera['bandwidth']} MB/hr</Td>
<Td>{camera['bandwidth'] ? camera['bandwidth'] : "Calculating..."} MB/hr</Td>
</Tr>
</Tbody>
</Table>