conditionally render minimap bounds for event segments

This commit is contained in:
Josh Hawkins 2024-03-24 12:28:54 -05:00
parent ed0931abca
commit a7f70aa196

View File

@ -205,6 +205,7 @@ export function EventSegment({
onClick={segmentClick} onClick={segmentClick}
onTouchEnd={(event) => handleTouchStart(event, segmentClick)} onTouchEnd={(event) => handleTouchStart(event, segmentClick)}
> >
{showMinimap && (
<MinimapBounds <MinimapBounds
isFirstSegmentInMinimap={isFirstSegmentInMinimap} isFirstSegmentInMinimap={isFirstSegmentInMinimap}
isLastSegmentInMinimap={isLastSegmentInMinimap} isLastSegmentInMinimap={isLastSegmentInMinimap}
@ -212,6 +213,7 @@ export function EventSegment({
alignedMinimapEndTime={alignedMinimapEndTime} alignedMinimapEndTime={alignedMinimapEndTime}
firstMinimapSegmentRef={firstMinimapSegmentRef} firstMinimapSegmentRef={firstMinimapSegmentRef}
/> />
)}
<Tick timestamp={timestamp} timestampSpread={timestampSpread} /> <Tick timestamp={timestamp} timestampSpread={timestampSpread} />