Skip to content

Commit

Permalink
fix: exports page overlap (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes authored Sep 10, 2024
1 parent 76e3cd5 commit f2d1a57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/nextjs/src/components/AppComponents/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";

import { useDemoUser } from "@/components/ContextProviders/Demo";
import Footer from "@/components/Footer";

import { Header } from "../Chat/header";
Expand All @@ -12,10 +13,13 @@ const Layout = ({
children: React.ReactNode;
includeFooter?: boolean;
}) => {
const isDemoUser = useDemoUser().isDemoUser;
return (
<div className="flex min-h-screen flex-col ">
<Header />
<main className="flex h-full flex-1 flex-col bg-muted/50 bg-white">
<main
className={`flex h-full flex-1 flex-col bg-muted/50 bg-white ${isDemoUser && `pt-28 sm:pt-20`}`}
>
<DialogProvider>{children}</DialogProvider>
</main>
{includeFooter && <Footer />}
Expand Down

0 comments on commit f2d1a57

Please sign in to comment.