From ac53508ad7f68b642dd88ac63b37b37106727938 Mon Sep 17 00:00:00 2001 From: AmitUp9 <96980485+AmitUp9@users.noreply.github.com> Date: Wed, 11 May 2022 09:42:47 +0300 Subject: [PATCH] TRA-4513_grpc heading overlap request size (#1075) * screen resolution changes * fix window width to not overlap between headlines --- ui-common/src/hooks/WindowDimensionsHook.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui-common/src/hooks/WindowDimensionsHook.tsx b/ui-common/src/hooks/WindowDimensionsHook.tsx index 0f9fa8315..27c774303 100644 --- a/ui-common/src/hooks/WindowDimensionsHook.tsx +++ b/ui-common/src/hooks/WindowDimensionsHook.tsx @@ -14,11 +14,11 @@ export function useRequestTextByWidth(windowWidth){ let responseText = "Response: " let elapsedTimeText = "Elapsed Time: " - if (windowWidth < 1078) { + if (windowWidth < 1436) { requestText = "" responseText = "" elapsedTimeText = "" - } else if (windowWidth < 1356) { + } else if (windowWidth < 1700) { requestText = "Req: " responseText = "Res: " elapsedTimeText = "ET: " @@ -38,6 +38,6 @@ export default function useWindowDimensions() { window.addEventListener('resize', handleResize); return () => window.removeEventListener('resize', handleResize); }, []); - + return windowDimensions; }