Move favorites menu below header to fix mobile cutoff - positioned in layout flow instead of absolute positioning for better mobile experience

This commit is contained in:
Ryderjj89
2025-09-14 12:33:34 -04:00
parent 54646f54d2
commit bda3608ff0
2 changed files with 15 additions and 9 deletions

View File

@@ -379,15 +379,8 @@ function App() {
)}
</div>
{/* User Authentication, Favorites & Dark Mode */}
{/* User Authentication & Dark Mode */}
<div className="flex items-center space-x-2">
{/* Favorites Menu - Only for authenticated users */}
<FavoritesMenu
user={user}
formatBookName={formatBookName}
getBookUrlName={getBookUrlName}
/>
{/* Authentication Button */}
{authAvailable && (
<div>
@@ -432,6 +425,19 @@ function App() {
</div>
</header>
{/* Favorites Menu - Positioned below header for authenticated users */}
{user && (
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-2">
<div className="flex justify-end">
<FavoritesMenu
user={user}
formatBookName={formatBookName}
getBookUrlName={getBookUrlName}
/>
</div>
</div>
)}
{/* Main Content */}
<main className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<Routes>