Room planner: fix mobile layout — move top-bar inside page-content

top-bar was a sibling of page-content in the flex-row app-shell, so on
mobile it sat in the left column instead of spanning the top. Moving it
inside page-content (a flex column) makes it stack above the content on
mobile while remaining hidden on desktop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-04 11:34:30 +00:00
parent b66b3a7854
commit cbfec7d591

View file

@ -32,7 +32,8 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<div className="sidebar-user">{user.name}</div>
</aside>
{/* Mobile top bar */}
<main className="page-content">
{/* Mobile top bar — lives inside page-content so it stacks above content */}
<header className="top-bar">
<BedDouble size={18} strokeWidth={1.75} color="var(--gold)" />
<span className="top-bar-title">Room Planner</span>
@ -48,7 +49,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
</nav>
</header>
<main className="page-content">
{children}
</main>
</div>