From 8d6fb7f8976fffb07a97dfa0d19b92f6a1fcc82d Mon Sep 17 00:00:00 2001 From: Nidhi Tandon Date: Mon, 31 May 2021 21:45:03 +0530 Subject: [PATCH] feat: update zoom pixels based on screen width --- frontend/src/modules/Servicemap/utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/modules/Servicemap/utils.ts b/frontend/src/modules/Servicemap/utils.ts index fb7abfb57a..347b07851b 100644 --- a/frontend/src/modules/Servicemap/utils.ts +++ b/frontend/src/modules/Servicemap/utils.ts @@ -79,10 +79,11 @@ export const getZoomPx = (): number => { if (width < 1400) { return 190; } else if (width > 1400 && width < 1700) { - return 380; + return 400; } else if (width > 1700) { - return 470; + return 485; } + return 190; }; export const getTooltip = (node: {