Colores de fondo en layout

This commit is contained in:
David Arranz 2026-04-01 18:01:35 +02:00
parent d955d903a0
commit 3826f40048
3 changed files with 5 additions and 7 deletions

View File

@ -82,7 +82,7 @@ export const ListCustomersPage = () => {
/> />
</AppHeader> </AppHeader>
<AppContent className="min-h-0"> <AppContent>
{isPanelOpen ? ( {isPanelOpen ? (
<ResizablePanelGroup <ResizablePanelGroup
autoSave="list-customers-page" autoSave="list-customers-page"

View File

@ -8,10 +8,7 @@ export const AppContent = ({
}: PropsWithChildren<{ className?: string }>) => { }: PropsWithChildren<{ className?: string }>) => {
return ( return (
<div <div
className={cn( className={cn("app-content flex flex-1 flex-col gap-4 p-4 pt-6 min-h-screen", className)}
"app-content flex flex-1 flex-col gap-4 p-4 pt-6 min-h-screen bg-muted/20",
className
)}
{...props} {...props}
> >
{children} {children}

View File

@ -6,6 +6,7 @@ import { AppSidebar } from "./app-sidebar.tsx";
export const AppLayout = () => { export const AppLayout = () => {
return ( return (
<SidebarProvider <SidebarProvider
className="bg-amber-500"
style={ style={
{ {
"--sidebar-width": "calc(var(--spacing) * 72)", "--sidebar-width": "calc(var(--spacing) * 72)",
@ -13,9 +14,9 @@ export const AppLayout = () => {
} as React.CSSProperties } as React.CSSProperties
} }
> >
<AppSidebar variant="inset" /> <AppSidebar className="bg-sidebar" variant="inset" />
{/* Aquí está el MAIN */} {/* Aquí está el MAIN */}
<SidebarInset className="app-main"> <SidebarInset className="app-main bg-muted">
<Outlet /> <Outlet />
</SidebarInset> </SidebarInset>
</SidebarProvider> </SidebarProvider>