From e4b1b641194cede65b8f0413bb1c805a84585dfe Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Sat, 24 Sep 2022 21:24:10 +0530 Subject: [PATCH] fix: responsiveness when resizing window on web/desktop (#1637) --- .../Components/Navigation/Navigation.tsx | 2 +- .../Popover/GetPositionedPopoverStyles.ts | 3 ++- .../Popover/PositionedPopoverContent.tsx | 5 ++-- .../Components/Popover/Utils/Rect.ts | 3 ++- .../Utils/usePopoverCloseOnClickOutside.ts | 3 ++- .../Preferences/PreferencesView.tsx | 11 +++++--- .../src/javascripts/Hooks/useMediaQuery.tsx | 26 +++++++++++++++++++ packages/web/src/javascripts/Utils/Utils.ts | 12 ++------- 8 files changed, 46 insertions(+), 19 deletions(-) create mode 100644 packages/web/src/javascripts/Hooks/useMediaQuery.tsx diff --git a/packages/web/src/javascripts/Components/Navigation/Navigation.tsx b/packages/web/src/javascripts/Components/Navigation/Navigation.tsx index ae153a753..3b03529a9 100644 --- a/packages/web/src/javascripts/Components/Navigation/Navigation.tsx +++ b/packages/web/src/javascripts/Components/Navigation/Navigation.tsx @@ -62,7 +62,7 @@ const Navigation: FunctionComponent = ({ application }) => {