From 9226014fe92cbc0971ef5b1982b4d59b8369b540 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 12 Apr 2026 20:44:22 +0100 Subject: [PATCH] fix sidebar --- .../layouts/global/global-app-shell.tsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/client/src/components/layouts/global/global-app-shell.tsx b/apps/client/src/components/layouts/global/global-app-shell.tsx index 316ed832..aeb9cb7e 100644 --- a/apps/client/src/components/layouts/global/global-app-shell.tsx +++ b/apps/client/src/components/layouts/global/global-app-shell.tsx @@ -78,7 +78,7 @@ export default function GlobalAppShell({ const isHomeRoute = location.pathname.startsWith("/home"); const isSpacesRoute = location.pathname === "/spaces"; const isPageRoute = location.pathname.includes("/p/"); - const showGlobalSidebar = !isSpaceRoute && !isSettingsRoute; + const showGlobalSidebar = !isSpaceRoute && !isSettingsRoute && !isAiRoute; return ( - {!hideSidebar && ( - - {!isAiRoute &&
} - {isSpaceRoute && } - {isSettingsRoute && } - {isAiRoute && } - {showGlobalSidebar && } - - )} + + {isSpaceRoute && ( +
+ )} + {isSpaceRoute && } + {isSettingsRoute && } + {isAiRoute && } + {showGlobalSidebar && } + {isSettingsRoute ? ( {children}