Skip to content

Commit

Permalink
🐛 Fix layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Jan 13, 2024
1 parent 67a5dab commit dda1624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions apps/web/src/app/[locale]/(admin)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,21 @@ export default async function Layout({
}) {
function SidebarLayout() {
return (
<div className="lg:flex h-full bg-gray-50">
<div className="bg-gray-50">
<MobileNavigation />
<div
className={cn(
"hidden lg:flex lg:w-72 bg-gray-100 shrink-0 flex-col gap-y-5 overflow-y-auto border-r lg:px-6 lg:py-4 px-5 py-4",
"hidden lg:flex z-50 inset-y-0 lg:fixed lg:w-72 bg-gray-100 shrink-0 flex-col gap-y-5 overflow-y-auto border-r lg:px-6 lg:py-4 px-5 py-4",
)}
>
<div>
<LogoLink />
</div>
<Sidebar />
</div>
<div className={cn("grow overflow-auto bg-gray-50")}>{children}</div>
<div className={cn("grow overflow-auto lg:pl-72 bg-gray-50")}>
{children}
</div>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Root({
}) {
return (
<html lang={locale} className={inter.className}>
<body className="h-screen overflow-y-scroll">
<body>
<Toaster />
<Providers>{children}</Providers>
</body>
Expand Down

1 comment on commit dda1624

@vercel
Copy link

@vercel vercel bot commented on dda1624 Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

app-git-main-rallly.vercel.app
app.rallly.co
app-rallly.vercel.app

Please sign in to comment.