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 06:28:44 -06:00
committed by GitHub
parent 037f3761e7
commit 45c43d7cf5
3 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -40,12 +40,13 @@ export default function Logs() {
<ButtonsTabbed viewModes={['frigate', 'go2rtc', 'nginx']} setViewMode={setLogService} />
<div className='overflow-auto font-mono text-sm text-gray-900 dark:text-gray-100 rounded bg-gray-100 dark:bg-gray-800 p-2 whitespace-pre-wrap'>
{logs}
</div>
<Button className="" onClick={handleCopyLogs}>
Copy to Clipboard
</Button>
<div className="overflow-auto font-mono text-sm text-gray-900 dark:text-gray-100 rounded bg-gray-100 dark:bg-gray-800 p-2 whitespace-pre-wrap">
{logs}
</div>
</div>
);
}