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}