don't display motion events on veritcal bars on motion timeline

This commit is contained in:
Josh Hawkins 2024-03-12 08:31:58 -05:00
parent 6f2d24a05a
commit 15065976f2

View File

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