Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions web/src/components/layout/LayoutShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ export function LayoutShell({ children }: { children: React.ReactNode }) {
const [collapsed, setCollapsed] = useState(true)
const pathname = usePathname()
const isAgentBoardFocusPage = pathname.startsWith("/studio/agent-board/")
const isAuthPage = ["/login", "/register", "/forgot-password"].includes(pathname)
const hideSidebar = isAgentBoardFocusPage || isAuthPage

return (
<div className="flex min-h-screen">
{!isAgentBoardFocusPage && (
{!hideSidebar && (
<aside
className={cn(
"fixed inset-y-0 z-50 hidden flex-col border-r bg-background transition-all duration-200 md:flex",
Expand All @@ -25,7 +27,7 @@ export function LayoutShell({ children }: { children: React.ReactNode }) {
<main
className={cn(
"flex-1 transition-all duration-200",
!isAgentBoardFocusPage && (collapsed ? "md:pl-14" : "md:pl-56"),
!hideSidebar && (collapsed ? "md:pl-14" : "md:pl-56"),
)}
>
{children}
Expand Down
Loading