| ... | ... | @@ -610,7 +610,6 @@ export const MessagesTimeline = memo(function MessagesTimeline({ |
| 610 | 610 | /> |
| 611 | 611 | <TimelineMinimap |
| 612 | 612 | items={minimapItems} |
| 613 | | bottomInset={contentInsetEndAdjustment} |
| 614 | 613 | hasPersistentGutter={minimapHasPersistentGutter} |
| 615 | 614 | hitStripWidth={minimapHitStripWidth} |
| 616 | 615 | stripMap={minimapStripMap} |
| ... | ... | @@ -712,14 +711,12 @@ function timelineMinimapEventTargetsPreview(target: EventTarget): boolean { |
| 712 | 711 | } |
| 713 | 712 | |
| 714 | 713 | function TimelineMinimap({ |
| 715 | | bottomInset, |
| 716 | 714 | hasPersistentGutter, |
| 717 | 715 | hitStripWidth, |
| 718 | 716 | items, |
| 719 | 717 | stripMap, |
| 720 | 718 | onSelect, |
| 721 | 719 | }: { |
| 722 | | bottomInset: number; |
| 723 | 720 | hasPersistentGutter: boolean; |
| 724 | 721 | hitStripWidth: number; |
| 725 | 722 | items: ReadonlyArray<TimelineMinimapItem>; |
| ... | ... | @@ -779,19 +776,16 @@ function TimelineMinimap({ |
| 779 | 776 | return null; |
| 780 | 777 | } |
| 781 | 778 | |
| 782 | | const safeBottomInset = Math.max(0, Math.ceil(bottomInset)); |
| 783 | | |
| 784 | 779 | return ( |
| 785 | 780 | <div |
| 786 | 781 | className={cn( |
| 787 | | "group/minimap pointer-events-none absolute top-0 left-0 z-40 hidden w-18 [@media(pointer:fine)]:block", |
| 782 | "group/minimap pointer-events-none absolute inset-y-0 left-0 z-40 hidden w-18 [@media(pointer:fine)]:block", |
| 788 | 783 | hasPersistentGutter |
| 789 | 784 | ? "opacity-100" |
| 790 | 785 | : "opacity-0 transition-opacity duration-150 hover:opacity-100 focus-within:opacity-100", |
| 791 | 786 | )} |
| 792 | 787 | data-testid="timeline-minimap" |
| 793 | 788 | data-persistent-gutter={hasPersistentGutter ? "true" : "false"} |
| 794 | | style={{ bottom: safeBottomInset }} |
| 795 | 789 | > |
| 796 | 790 | <div className="relative h-full w-full select-none"> |
| 797 | 791 | <button |