mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
don't display motion events on veritcal bars on motion timeline
This commit is contained in:
parent
6f2d24a05a
commit
15065976f2
@ -244,21 +244,27 @@ export function MotionSegment({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{severity.map((severityValue: number, index: number) => (
|
{severity.map((severityValue: number, index: number) => {
|
||||||
<React.Fragment key={index}>
|
if (severityValue > 1) {
|
||||||
<div className="absolute right-0 h-2 z-10">
|
return (
|
||||||
<div
|
<React.Fragment key={index}>
|
||||||
key={`${segmentKey}_${index}_secondary_data`}
|
<div className="absolute right-0 h-2 z-10">
|
||||||
className={`
|
<div
|
||||||
w-1 h-2 bg-gradient-to-r
|
key={`${segmentKey}_${index}_secondary_data`}
|
||||||
${roundBottomSecondary ? "rounded-bl-full rounded-br-full" : ""}
|
className={`
|
||||||
${roundTopSecondary ? "rounded-tl-full rounded-tr-full" : ""}
|
w-1 h-2 bg-gradient-to-r
|
||||||
${severityColors[severityValue]}
|
${roundBottomSecondary ? "rounded-bl-full rounded-br-full" : ""}
|
||||||
`}
|
${roundTopSecondary ? "rounded-tl-full rounded-tr-full" : ""}
|
||||||
></div>
|
${severityColors[severityValue]}
|
||||||
</div>
|
`}
|
||||||
</React.Fragment>
|
></div>
|
||||||
))}
|
</div>
|
||||||
|
</React.Fragment>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user