Don't show preview for birdseye (#11749)

* Don't show preview for birdseye

* Retry ws connection on error

* Flex wrap cameras labels
This commit is contained in:
Nicolas Mowen 2024-06-04 14:00:04 -06:00 committed by GitHub
parent 3f0a954856
commit 0181d1e377
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -77,6 +77,7 @@ function useValue(): useValueReturn {
}); });
}, },
shouldReconnect: () => true, shouldReconnect: () => true,
retryOnError: true,
}); });
const setState = useCallback( const setState = useCallback(

View File

@ -116,7 +116,7 @@ export function CameraLineGraph({
return ( return (
<div className="flex w-full flex-col"> <div className="flex w-full flex-col">
{lastValues && ( {lastValues && (
<div className="flex items-center gap-2.5"> <div className="flex flex-wrap items-center gap-2.5">
{dataLabels.map((label, labelIdx) => ( {dataLabels.map((label, labelIdx) => (
<div key={label} className="flex items-center gap-1"> <div key={label} className="flex items-center gap-1">
<MdCircle <MdCircle

View File

@ -527,7 +527,7 @@ export function RecordingView({
> >
<div className="w-2" /> <div className="w-2" />
{allCameras.map((cam) => { {allCameras.map((cam) => {
if (cam == mainCamera) { if (cam == mainCamera || cam == "birdseye") {
return; return;
} }