diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 99ea315..1d7f374 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -68,7 +68,6 @@ const GlobalSearch = () => { const handleSearch = (e: React.FormEvent) => { e.preventDefault(); - // Redirect to categories page with search query if (query.trim()) { navigate(`/?q=${encodeURIComponent(query.trim())}`); } else { @@ -77,7 +76,7 @@ const GlobalSearch = () => { }; return ( - + { renderInput={(params) => ( { - - - setDrawerOpen(true)} - sx={{ mr: 2, display: { md: 'none' } }} - > - - - - - Holy Flavors - - - - - - {!isMobile && !loadingUser && ( - - {navItems.map((item) => ( - - ))} - {user && ( - - )} - - )} - - setAnchorEl(e.currentTarget)} sx={{ ml: 1 }}> - - - setAnchorEl(null)} - sx={{ maxHeight: 500 }} + + + + setDrawerOpen(true)} + sx={{ mr: { xs: 0, sm: 2 }, display: { md: 'none' } }} > - Light Themes - handleThemeChange('latte')}>Latte - handleThemeChange('pink')}>Pastel Pink - handleThemeChange('solarized_light')}>Solarized Light - handleThemeChange('one_light')}>One Light - handleThemeChange('paper')}>Paper White - - - - Dark Themes - handleThemeChange('mocha')}>Mocha (Default) - handleThemeChange('frappe')}>Frappé - handleThemeChange('macchiato')}>Macchiato - handleThemeChange('atom')}>Atom One Dark - handleThemeChange('dracula')}>Dracula - handleThemeChange('gruvbox')}>Gruvbox Dark - handleThemeChange('nord')}>Nord - handleThemeChange('cyberpunk')}>Cyberpunk - handleThemeChange('forest')}>Forest Dark - - - - - + + + + + Holy Flavors + + + - setDrawerOpen(false)} - ModalProps={{ keepMounted: true }} - sx={{ - display: { xs: 'block', md: 'none' }, - '& .MuiDrawer-paper': { boxSizing: 'border-box', width: 240 }, - }} - > - {drawer} - + + {!isMobile && !loadingUser && ( + + {navItems.map((item) => ( + + ))} + {user && ( + + )} + + )} + + setAnchorEl(e.currentTarget)} sx={{ ml: 1 }}> + + + setAnchorEl(null)} + sx={{ maxHeight: 500 }} + > + Light Themes + handleThemeChange('latte')}>Latte + handleThemeChange('pink')}>Pastel Pink + handleThemeChange('solarized_light')}>Solarized Light + handleThemeChange('one_light')}>One Light + handleThemeChange('paper')}>Paper White + + + + Dark Themes + handleThemeChange('mocha')}>Mocha (Default) + handleThemeChange('frappe')}>Frappé + handleThemeChange('macchiato')}>Macchiato + handleThemeChange('atom')}>Atom One Dark + handleThemeChange('dracula')}>Dracula + handleThemeChange('gruvbox')}>Gruvbox Dark + handleThemeChange('nord')}>Nord + handleThemeChange('cyberpunk')}>Cyberpunk + handleThemeChange('forest')}>Forest Dark + + + + + - - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - + + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + setDrawerOpen(false)} + ModalProps={{ keepMounted: true }} + sx={{ + display: { xs: 'block', md: 'none' }, + '& .MuiDrawer-paper': { boxSizing: 'border-box', width: 240 }, + }} + > + {drawer} + diff --git a/frontend/src/pages/CategoryList.tsx b/frontend/src/pages/CategoryList.tsx index a55754d..bc37025 100644 --- a/frontend/src/pages/CategoryList.tsx +++ b/frontend/src/pages/CategoryList.tsx @@ -95,7 +95,7 @@ const CategoryList: React.FC = () => { return ( - Search Results for "{query}" + Search Results for "{query}" Found {filteredFlavors.length} items @@ -136,8 +136,8 @@ const CategoryList: React.FC = () => { // --- HOME VIEW --- return ( - - {/* Hero Section - True Full Width */} + + {/* Hero Section - True Full Width, No Overflow */} { textAlign: 'center', borderBottom: '1px solid rgba(255,255,255,0.1)', width: '100%', - mt: -4 // Counter the parent Box mt + mt: -4, // Counter the parent Box py: 4 + boxSizing: 'border-box', + overflow: 'hidden' }} > - + The Ultimate Holy Archive - + Browse every flavor ever released, discover new favorites, and share your ratings with the community. - +