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

View File

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