better sidebar with sidebar inset && dev tools desactivated

This commit is contained in:
Levi Planelles 2025-12-11 14:10:10 +01:00
parent 79aeccfd6c
commit a68b9d17da
2 changed files with 9 additions and 6 deletions

View File

@ -1,9 +1,9 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar"
import { SidebarProvider, SidebarTrigger, SidebarInset } from "@/components/ui/sidebar"
import { AppSidebar } from "@/components/app-sidebar"
import { noSSR } from "next/dynamic";
const geistSans = Geist({
variable: "--font-geist-sans",
@ -27,17 +27,19 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
<SidebarProvider>
<AppSidebar />
<SidebarInset>
<main>
<SidebarTrigger />
{children}
{children}
</main>
</SidebarInset>
</SidebarProvider>
</body>
</html>
);
}

View File

@ -2,6 +2,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
devIndicators: false
};
export default nextConfig;