Skip to content

Commit

Permalink
feat: Update layout for sidebar and header components
Browse files Browse the repository at this point in the history
- refactor: Move SidebarHeader to a sticky top position
- style: Add padding-top to main content area
- fix: Enhance overall layout structure for better responsiveness
  • Loading branch information
Sampiiiii committed Nov 18, 2024
1 parent 3466480 commit 23b0b3f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/forge/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ function RootComponent() {
<SidebarProvider>
<AppSidebar />
<SidebarInset className="flex flex-col">
<SidebarHeader />
<div className="flex-grow ">
<div className="h-fit min-h-screen">
<div className="sticky top-0 z-50 bg-background">
<SidebarHeader />
</div>
<div className="flex-grow">
<div className="h-fit min-h-screen pt-4">
<RootComponentInner>
<Outlet />
</RootComponentInner>
Expand Down

0 comments on commit 23b0b3f

Please sign in to comment.