mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
UI Fixes (#11648)
* Add cursor pointer to preset dropdown * Catch key index * Fix iOS mime type
This commit is contained in:
parent
9cb3e11df6
commit
1c5e7ebb48
@ -104,14 +104,18 @@ export function AnimatedEventCard({ event }: AnimatedEventCardProps) {
|
|||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<video
|
<video
|
||||||
src={`${baseUrl}api/review/${event.id}/preview?format=ts`}
|
|
||||||
preload="auto"
|
preload="auto"
|
||||||
autoPlay
|
autoPlay
|
||||||
playsInline
|
playsInline
|
||||||
muted
|
muted
|
||||||
disableRemotePlayback
|
disableRemotePlayback
|
||||||
loop
|
loop
|
||||||
|
>
|
||||||
|
<source
|
||||||
|
src={`${baseUrl}api/review/${event.id}/preview?format=mp4`}
|
||||||
|
type="video/mp4"
|
||||||
/>
|
/>
|
||||||
|
</video>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="absolute inset-x-0 bottom-0 h-6 rounded bg-gradient-to-t from-slate-900/50 to-transparent">
|
<div className="absolute inset-x-0 bottom-0 h-6 rounded bg-gradient-to-t from-slate-900/50 to-transparent">
|
||||||
|
@ -672,7 +672,9 @@ export function InProgressPreview({
|
|||||||
setReviewed(review.id);
|
setReviewed(review.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (previewFrames[key + 1]) {
|
||||||
setKey(key + 1);
|
setKey(key + 1);
|
||||||
|
}
|
||||||
}, MIN_LOAD_TIMEOUT_MS);
|
}, MIN_LOAD_TIMEOUT_MS);
|
||||||
|
|
||||||
// we know that these deps are correct
|
// we know that these deps are correct
|
||||||
|
@ -594,6 +594,7 @@ function PtzControlPanel({
|
|||||||
return (
|
return (
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
key={preset}
|
key={preset}
|
||||||
|
className="cursor-pointer"
|
||||||
onSelect={() => sendPtz(`preset_${preset}`)}
|
onSelect={() => sendPtz(`preset_${preset}`)}
|
||||||
>
|
>
|
||||||
{preset}
|
{preset}
|
||||||
|
Loading…
Reference in New Issue
Block a user