mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
bugfixes and small UI tweaks (#11360)
This commit is contained in:
parent
9680f2a574
commit
fbec08354c
@ -440,7 +440,7 @@ export function CameraGroupRow({
|
|||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
key={group[0]}
|
key={group[0]}
|
||||||
className="flex md:p-1 rounded-lg flex-row items-center justify-between md:mx-2 my-1.5 transition-background duration-100"
|
className="flex md:p-1 rounded-lg flex-row items-center justify-between my-1.5 transition-background duration-100"
|
||||||
>
|
>
|
||||||
<div className={`flex items-center`}>
|
<div className={`flex items-center`}>
|
||||||
<p className="cursor-default">{group[0]}</p>
|
<p className="cursor-default">{group[0]}</p>
|
||||||
|
@ -206,7 +206,7 @@ export default function PolygonItem({
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
key={index}
|
key={index}
|
||||||
className="flex p-1 rounded-lg flex-row items-center justify-between mx-2 my-1.5 transition-background duration-100"
|
className="flex p-1 rounded-lg flex-row items-center justify-between my-1.5 transition-background duration-100"
|
||||||
data-index={index}
|
data-index={index}
|
||||||
onMouseEnter={() => setHoveredPolygonIndex(index)}
|
onMouseEnter={() => setHoveredPolygonIndex(index)}
|
||||||
onMouseLeave={() => setHoveredPolygonIndex(null)}
|
onMouseLeave={() => setHoveredPolygonIndex(null)}
|
||||||
|
@ -147,9 +147,11 @@ export function EventReviewTimeline({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// don't scroll when segments update from unreviewed -> reviewed
|
||||||
|
// we know that these deps are correct
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [
|
}, [
|
||||||
selectedTimelineRef,
|
selectedTimelineRef,
|
||||||
segments,
|
|
||||||
showMinimap,
|
showMinimap,
|
||||||
alignStartDateToTimeline,
|
alignStartDateToTimeline,
|
||||||
visibleTimestamps,
|
visibleTimestamps,
|
||||||
|
@ -103,9 +103,9 @@ export default function EventView({
|
|||||||
|
|
||||||
if (filter?.showReviewed == 1) {
|
if (filter?.showReviewed == 1) {
|
||||||
return {
|
return {
|
||||||
alert: summary.total_alert,
|
alert: summary.total_alert ?? 0,
|
||||||
detection: summary.total_detection,
|
detection: summary.total_detection ?? 0,
|
||||||
significant_motion: summary.total_motion,
|
significant_motion: summary.total_motion ?? 0,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user