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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user