Skip to content

Commit

Permalink
Don't show preview for birdseye (#11749)
Browse files Browse the repository at this point in the history
* Don't show preview for birdseye

* Retry ws connection on error

* Flex wrap cameras labels
  • Loading branch information
NickM-27 committed Jun 4, 2024
1 parent 3f0a954 commit 0181d1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions web/src/api/ws.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function useValue(): useValueReturn {
});
},
shouldReconnect: () => true,
retryOnError: true,
});

const setState = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/graph/CameraGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function CameraLineGraph({
return (
<div className="flex w-full flex-col">
{lastValues && (
<div className="flex items-center gap-2.5">
<div className="flex flex-wrap items-center gap-2.5">
{dataLabels.map((label, labelIdx) => (
<div key={label} className="flex items-center gap-1">
<MdCircle
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/events/RecordingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ export function RecordingView({
>
<div className="w-2" />
{allCameras.map((cam) => {
if (cam == mainCamera) {
if (cam == mainCamera || cam == "birdseye") {
return;
}

Expand Down

0 comments on commit 0181d1e

Please sign in to comment.