diff --git a/admin-spa/src/App.tsx b/admin-spa/src/App.tsx index b3506ae..ea3959a 100644 --- a/admin-spa/src/App.tsx +++ b/admin-spa/src/App.tsx @@ -422,7 +422,7 @@ function Shell() { ) : ( )} - +
@@ -437,7 +437,7 @@ function Shell() { )}
- +
@@ -452,7 +452,7 @@ function Shell() { ) : ( )} - +
diff --git a/admin-spa/src/components/PageHeader.tsx b/admin-spa/src/components/PageHeader.tsx index 6db3e99..e89fee5 100644 --- a/admin-spa/src/components/PageHeader.tsx +++ b/admin-spa/src/components/PageHeader.tsx @@ -1,13 +1,22 @@ import React from 'react'; import { usePageHeader } from '@/contexts/PageHeaderContext'; -export function PageHeader() { +interface PageHeaderProps { + fullscreen?: boolean; +} + +export function PageHeader({ fullscreen = false }: PageHeaderProps) { const { title, action } = usePageHeader(); if (!title) return null; + // Calculate top position based on fullscreen state + // Fullscreen: top-0 (submenu is at top-0) + // Normal: top-[calc(7rem+32px)] = top-[144px] (below WP bar + menu + submenu) + const topClass = fullscreen ? 'top-0' : 'top-[calc(10rem+32px)]'; + return ( -
+

{title}