From 7f06a4c707f10ae8038463deb9c6df33fb2c003e Mon Sep 17 00:00:00 2001 From: stacksmash76 <98354295+stacksmash76@users.noreply.github.com> Date: Sun, 15 May 2022 14:07:28 +0200 Subject: [PATCH] feat(web): improve filters nav mobile (#272) fix(components/Debug): added overflow handling for smaller screens (or for long lines) feat(settings/SidebarNav): shortened vertical padding from 24px to 8px fix(filters/FilterDetails): fixed FilterDetails component to behave properly with mobile devices and made it consistent with the desktop UI chore: cleaned up unnecessary code Co-authored-by: anonymous --- web/src/components/debug.tsx | 6 +++-- web/src/screens/Settings.tsx | 2 +- web/src/screens/filters/details.tsx | 42 ++++++----------------------- web/src/utils/index.ts | 18 ------------- 4 files changed, 13 insertions(+), 55 deletions(-) diff --git a/web/src/components/debug.tsx b/web/src/components/debug.tsx index 95e649d..7b9767c 100644 --- a/web/src/components/debug.tsx +++ b/web/src/components/debug.tsx @@ -10,8 +10,10 @@ const DEBUG: FC = ({ values }) => { } return ( -
-
{JSON.stringify(values, 0 as any, 2)}
+
+
+              {JSON.stringify(values, undefined, 2)}
+            
); }; diff --git a/web/src/screens/Settings.tsx b/web/src/screens/Settings.tsx index ea3349e..313edf5 100644 --- a/web/src/screens/Settings.tsx +++ b/web/src/screens/Settings.tsx @@ -53,7 +53,7 @@ function SubNavLink({item, url}: any) { function SidebarNav({subNavigation, url}: any) { return ( -