diff --git a/app/layout-content.tsx b/app/layout-content.tsx index b40ab9b..5ac3317 100644 --- a/app/layout-content.tsx +++ b/app/layout-content.tsx @@ -95,7 +95,12 @@ function LayoutInner({ children }: { children: React.ReactNode }) { return } - // Authenticated site pages: full Dokploy-style layout (sidebar + utility bar) + // While auth is loading on a site page, render nothing to prevent flash of public header + if (auth.loading && isSitePage) { + return null + } + + // Authenticated site pages: full sidebar layout // DashboardShell inside children handles everything if (isAuthenticated && isSitePage) { return ( diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index 585667f..1ff4ea5 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -23,7 +23,7 @@ import { const SIDEBAR_KEY = 'pulse_sidebar_collapsed' const EXPANDED = 256 -const COLLAPSED = 56 +const COLLAPSED = 64 type IconWeight = 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone'