Skip to content

Commit

Permalink
feat: fix bottom margin for children
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitKS7 committed Jun 24, 2024
1 parent 114edde commit 89ffa25
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/(root)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Layout = ({ children }: { children: React.ReactNode }) => {
<div className="flex">
<LeftSidebar />
<section className="flex min-h-screen flex-1 flex-col px-6 pt-36 max-md:pb-14 sm:px-14">
<div className="mx-auto w-full max-w-5xl">{children}</div>
<div className="mx-auto mb-7 w-full max-w-5xl">{children}</div>
</section>
<RightSidebar />
</div>
Expand Down
5 changes: 1 addition & 4 deletions app/(root)/profile/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ const Page = async ({ params, searchParams }: URLProps) => {
clerkId={clerkId}
/>
</TabsContent>
<TabsContent
value="answers"
className="mt-5 flex w-full flex-col gap-6"
>
<TabsContent value="answers" className="mt-5 flex w-full flex-col ">
<AnswersTab
searchParams={searchParams}
userId={userInfo?.user._id}
Expand Down
4 changes: 4 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ code {
.cl-internal-b3fm6y {
background: linear-gradient(111deg, #f08080 0%, #e9b8b8 100%);
}
.cl-internal-ttumny {
border: none;
box-shadow: none;
}
.hash-span {
margin-top: -140px;
padding-bottom: 140px;
Expand Down
3 changes: 3 additions & 0 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const isPublicRoutes = createRouteMatcher([
"/profile/:id",
"/community",
"/jobs",
"/sign-in(.*)",
"/sign-up(.*)",
"/api/chatgpt",
]);

// exclude public routes and Protect all other routes.
Expand Down

0 comments on commit 89ffa25

Please sign in to comment.