From c0b09209014f56da076be0c72d7642dd811f5056 Mon Sep 17 00:00:00 2001 From: Yunus M Date: Fri, 15 Dec 2023 17:29:54 +0530 Subject: [PATCH] Round off x axis max timestamp to T - 1 min and 0th second (#4238) * feat: round of x axis max timestamp to t - 1 min and 0th second * feat: set min width of time selection dropdown to 120px * feat: update logic comment --------- Co-authored-by: Srikanth Chekuri --- .../container/TopNav/DateTimeSelection/index.tsx | 3 +++ frontend/src/lib/uPlotLib/utils/getXAxisScale.ts | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/frontend/src/container/TopNav/DateTimeSelection/index.tsx b/frontend/src/container/TopNav/DateTimeSelection/index.tsx index 14f454dbb1..b36a1ebaba 100644 --- a/frontend/src/container/TopNav/DateTimeSelection/index.tsx +++ b/frontend/src/container/TopNav/DateTimeSelection/index.tsx @@ -292,6 +292,9 @@ function DateTimeSelection({ selectedTime, )} data-testid="dropDown" + style={{ + minWidth: 120, + }} > {options.map(({ value, label }) => (