Skip to content

Commit

Permalink
fix(ui): Clamp timeline zoom to the minute (#83435)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jan 14, 2025
1 parent a968724 commit 8aad757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/app/components/checkInTimeline/gridLines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export function GridLineOverlay({
(startX: number, endX: number) =>
updateDateTime(
{
start: dateFromPosition(startX).toDate(),
end: dateFromPosition(endX).toDate(),
start: dateFromPosition(startX).startOf('minute').toDate(),
end: dateFromPosition(endX).add(1, 'minute').startOf('minute').toDate(),
},
router
),
Expand Down

0 comments on commit 8aad757

Please sign in to comment.