From 4f6d2de75f2abd66f1b767e36751502ece24ee70 Mon Sep 17 00:00:00 2001 From: Paul <paulmakles@gmail.com> Date: Sat, 10 Jul 2021 16:26:58 +0100 Subject: [PATCH] Fix: Hide panels in server / channel settings. --- src/pages/RevoltApp.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/RevoltApp.tsx b/src/pages/RevoltApp.tsx index 446494d..330015d 100644 --- a/src/pages/RevoltApp.tsx +++ b/src/pages/RevoltApp.tsx @@ -35,12 +35,11 @@ export default function App() { const path = useLocation().pathname; const fixedBottomNav = path === "/" || path === "/settings" || path.startsWith("/friends"); - const inSettings = path.includes("/settings"); const inChannel = path.includes("/channel"); const inSpecial = (path.startsWith("/friends") && isTouchscreenDevice) || path.startsWith("/invite") || - path.startsWith("/settings"); + path.includes("/settings"); return ( <OverlappingPanels @@ -52,7 +51,7 @@ export default function App() { : { width: 292, component: <LeftSidebar /> } } rightPanel={ - !inSettings && inChannel + !inSpecial && inChannel ? { width: 240, component: <RightSidebar /> } : undefined } -- GitLab