Skip to content

Commit

Permalink
fix: fix layout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneMoroz committed Aug 30, 2024
1 parent 8b3f0f3 commit b5de110
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Layout({ children }: LayoutProps) {
</Navbar>
<main className="flex h-full w-full flex-col items-center overflow-y-auto p-10">
<div className="h-full gap-y-9 xl:flex">
<div className="flex h-full items-center justify-center">
<div className="flex items-center justify-center">
<AuthBannerContainer />
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function Layout({ children }: LayoutProps) {
<div className="relative flex flex-1 overflow-hidden">
<Sidebar />
<main className="flex w-full flex-1 flex-col items-center overflow-y-auto p-10">
<div className="flex h-full w-full max-w-[1500px] flex-col gap-y-10">
<div className="flex w-full max-w-[1500px] flex-col gap-y-10">
{children}
</div>
</main>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function ErrorComponent({
}

return (
<div className="mx-auto flex h-full w-full max-w-[628px] flex-col items-center justify-center gap-y-6">
<div className="mx-auto flex h-[calc(100vh-155px)] w-full max-w-[628px] flex-col items-center justify-center gap-y-6">
<Banner
imageLight="/img/error_light.png"
imageDark="/img/error_dark.png"
Expand Down

0 comments on commit b5de110

Please sign in to comment.