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>
<AppContent className="min-h-0">
<AppContent>
{isPanelOpen ? (
<ResizablePanelGroup
autoSave="list-customers-page"

View File

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

View File

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