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 <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>

View File

@ -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)}

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

View File

@ -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 {