From bda3608ff04dbf62059d05d1b4d148dadaaa9a9d Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sun, 14 Sep 2025 12:33:34 -0400 Subject: [PATCH] Move favorites menu below header to fix mobile cutoff - positioned in layout flow instead of absolute positioning for better mobile experience --- frontend/src/App.tsx | 22 ++++++++++++++-------- frontend/src/components/FavoritesMenu.tsx | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 15410b9e..be0f404d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -379,15 +379,8 @@ function App() { )} - {/* User Authentication, Favorites & Dark Mode */} + {/* User Authentication & Dark Mode */}
- {/* Favorites Menu - Only for authenticated users */} - - {/* Authentication Button */} {authAvailable && (
@@ -432,6 +425,19 @@ function App() {
+ {/* Favorites Menu - Positioned below header for authenticated users */} + {user && ( +
+
+ +
+
+ )} + {/* Main Content */}
diff --git a/frontend/src/components/FavoritesMenu.tsx b/frontend/src/components/FavoritesMenu.tsx index 4117b445..d925d438 100644 --- a/frontend/src/components/FavoritesMenu.tsx +++ b/frontend/src/components/FavoritesMenu.tsx @@ -166,7 +166,7 @@ const FavoritesMenu: React.FC = ({ user, formatBookName, get {/* Favorites Dropdown */} {isOpen && ( -
+

My Favorites