UPDATE
This commit is contained in:
@@ -27,12 +27,14 @@ export default function Layout({ children }: LayoutProps) {
|
||||
<div className={`flex h-screen ${theme === "dark" ? "dark" : ""}`}>
|
||||
<Sidebar />
|
||||
<div className="w-full flex flex-1 flex-col">
|
||||
<header className="h-16 border-b border-border flex items-center justify-end px-6">
|
||||
<div className="flex items-center space-x-2">
|
||||
<UnifiedNotifications />
|
||||
</div>
|
||||
</header>
|
||||
<main className={`flex-1 overflow-auto ${isChatDetailPage ? 'p-0' : 'p-6'} dark:bg-[#0F0F12]`}>
|
||||
{!isChatDetailPage && (
|
||||
<header className="h-16 border-b border-border flex items-center justify-end px-6">
|
||||
<div className="flex items-center space-x-2">
|
||||
<UnifiedNotifications />
|
||||
</div>
|
||||
</header>
|
||||
)}
|
||||
<main className={`flex-1 ${isChatDetailPage ? 'p-0 overflow-hidden' : 'p-6 overflow-auto'} dark:bg-[#0F0F12] relative`}>
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user