Skip to content

Commit

Permalink
UI Fixes (#11648)
Browse files Browse the repository at this point in the history
* Add cursor pointer to preset dropdown

* Catch key index

* Fix iOS mime type
  • Loading branch information
NickM-27 committed May 30, 2024
1 parent 9cb3e11 commit 1c5e7eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions web/src/components/card/AnimatedEventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,18 @@ export function AnimatedEventCard({ event }: AnimatedEventCardProps) {
/>
) : (
<video
src={`${baseUrl}api/review/${event.id}/preview?format=ts`}
preload="auto"
autoPlay
playsInline
muted
disableRemotePlayback
loop
/>
>
<source
src={`${baseUrl}api/review/${event.id}/preview?format=mp4`}
type="video/mp4"
/>
</video>
)}
</div>
<div className="absolute inset-x-0 bottom-0 h-6 rounded bg-gradient-to-t from-slate-900/50 to-transparent">
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/player/PreviewThumbnailPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,9 @@ export function InProgressPreview({
setReviewed(review.id);
}

setKey(key + 1);
if (previewFrames[key + 1]) {
setKey(key + 1);
}
}, MIN_LOAD_TIMEOUT_MS);

// we know that these deps are correct
Expand Down
1 change: 1 addition & 0 deletions web/src/views/live/LiveCameraView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ function PtzControlPanel({
return (
<DropdownMenuItem
key={preset}
className="cursor-pointer"
onSelect={() => sendPtz(`preset_${preset}`)}
>
{preset}
Expand Down

0 comments on commit 1c5e7eb

Please sign in to comment.