Timeline handlebar changes (#10170)

* auto scrolling handlebar with preview time

* tablets can show 2 columns on the event view grid

* font sizes

* hide minimap when previewing
This commit is contained in:
Josh Hawkins
2024-03-01 09:36:13 -06:00
committed by GitHub
parent 49530dc2e4
commit a49e1bbc64
4 changed files with 86 additions and 113 deletions

View File

@@ -322,7 +322,7 @@ export default function EventView({
)}
<div
className="w-full m-2 grid md:grid-cols-3 3xl:grid-cols-4 gap-2 md:gap-4"
className="w-full m-2 grid sm:grid-cols-2 md:grid-cols-3 3xl:grid-cols-4 gap-2 md:gap-4"
ref={contentRef}
>
{currentItems ? (
@@ -366,7 +366,7 @@ export default function EventView({
timestampSpread={15}
timelineStart={timeRange.before}
timelineEnd={timeRange.after}
showMinimap={showMinimap}
showMinimap={showMinimap && !previewTime}
minimapStartTime={minimapBounds.start}
minimapEndTime={minimapBounds.end}
showHandlebar={previewTime != undefined}