Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated layout #1212

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 5 additions & 3 deletions app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@ export default async function RootLayout({
: null;

return (
<>
<div className="grid min-h-screen grid-rows-[auto_1fr_auto]">
CarolinaCobo marked this conversation as resolved.
Show resolved Hide resolved
<Nav
session={session}
algoliaSearchConfig={algoliaSearchConfig}
username={userData?.username || null}
/>
{children}
<main className="w-full relative mx-auto max-w-2xl bg-neutral-100 dark:bg-black sm:mx-auto">
{children}
</main>
<Footer />
</>
</div>
);
}
4 changes: 2 additions & 2 deletions app/(app)/my-posts/_client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ const MyPosts = () => {
/>
)}
<div className="relative mx-4 max-w-2xl bg-neutral-100 dark:bg-black sm:mx-auto">
<div className="mb-4 mt-8">
<Tabs tabs={tabs} />
<div className="mb-4 mt-8">
<Tabs tabs={tabs} />
</div>
<div>
{selectedTabData.status === "loading" && (
Expand Down
Loading