bugfixes and small UI tweaks (#11360)

This commit is contained in:
Josh Hawkins 2024-05-13 07:42:11 -05:00 committed by GitHub
parent 9680f2a574
commit fbec08354c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 6 deletions

View File

@ -440,7 +440,7 @@ export function CameraGroupRow({
<>
<div
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`}>
<p className="cursor-default">{group[0]}</p>

View File

@ -206,7 +206,7 @@ export default function PolygonItem({
<div
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}
onMouseEnter={() => setHoveredPolygonIndex(index)}
onMouseLeave={() => setHoveredPolygonIndex(null)}

View File

@ -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,
segments,
showMinimap,
alignStartDateToTimeline,
visibleTimestamps,

View File

@ -103,9 +103,9 @@ export default function EventView({
if (filter?.showReviewed == 1) {
return {
alert: summary.total_alert,
detection: summary.total_detection,
significant_motion: summary.total_motion,
alert: summary.total_alert ?? 0,
detection: summary.total_detection ?? 0,
significant_motion: summary.total_motion ?? 0,
};
} else {
return {