Skip to content

Commit

Permalink
fix(ui): Extend sidebar to bottom of page
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 2, 2024
1 parent f870bd9 commit b94d53d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { cookies } from "next/headers"

import { Metadata } from "next"
import { Search } from "@/components/search"
import { Workspace } from "@/components/workspace"
import { Workspace } from "@/components/workspace"
import WorkflowSwitcher from "@/components/workflow-switcher"
import { UserNav } from "@/components/user-nav"

Expand All @@ -24,29 +24,29 @@ export default function DashboardPage() {
// Safely attempt to parse `collapsed.value` if it exists
defaultCollapsed = collapsed ? JSON.parse(collapsed.value) : undefined;
} catch (error) {
// Handle any errors that occur during parsing, such as invalid JSON
console.error("Error parsing collapsed value:", error);
defaultCollapsed = false; // Or set to a sensible default
}
}

return (
<>
<div className="border-b">
<div className="flex h-16 items-center px-4">
<WorkflowSwitcher />
<div className="ml-auto flex items-center space-x-4">
<Search />
<UserNav />
<div className="flex flex-col h-screen">
<div className="border-b">
<div className="flex h-16 items-center px-4">
<WorkflowSwitcher />
<div className="ml-auto flex items-center space-x-4">
<Search />
<UserNav />
</div>
</div>
</div>
</div>
<div className="flex-col">
<Workspace
defaultLayout={defaultLayout}
defaultCollapsed={defaultCollapsed}
navCollapsedSize={4}
/>
<div className="flex flex-col flex-grow">
<Workspace
defaultLayout={defaultLayout}
defaultCollapsed={defaultCollapsed}
navCollapsedSize={4}
/>
</div>
</div>
</>
)
Expand Down

0 comments on commit b94d53d

Please sign in to comment.