diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b087fec..5285b06 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -90,7 +90,7 @@ const GlobalSearch = () => { const [loading, setLoading] = useState(false); const navigate = useNavigate(); const location = useLocation(); - const isMobile = useMediaQuery('(max-width:900px)'); + const isMobile = useMediaQuery('(max-width:1150px)'); // Debounced search useEffect(() => { @@ -220,7 +220,7 @@ const App: React.FC = () => { const [drawerOpen, setDrawerOpen] = useState(false); const [catOpen, setCatOpen] = useState(false); const [adminMode, setAdminMode] = useState(localStorage.getItem('admin-mode') === 'true'); - const isMobile = useMediaQuery('(max-width:900px)'); + const isMobile = useMediaQuery('(max-width:1150px)'); const toggleAdminMode = () => { const newVal = !adminMode; diff --git a/frontend/src/pages/CommunityFeed.tsx b/frontend/src/pages/CommunityFeed.tsx index 61beefa..eeee4d1 100644 --- a/frontend/src/pages/CommunityFeed.tsx +++ b/frontend/src/pages/CommunityFeed.tsx @@ -222,7 +222,7 @@ const CommunityFeed: React.FC = ({ adminMode }) => { {/* Main Feed Column */} - + {ratings.length === 0 ? ( = ({ adminMode }) => { borderColor: (theme) => alpha(theme.palette.primary.main, 0.2) } }}> - + {/* User Info */} @@ -372,7 +372,7 @@ const CommunityFeed: React.FC = ({ adminMode }) => { {/* Sidebar Column */} - + {/* Notifications Widget */} diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 91fb741..f14697e 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -47,7 +47,7 @@ const Dashboard: React.FC = () => { const { t } = useTranslation(); const navigate = useNavigate(); const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down('md')); + const isMobile = useMediaQuery(theme.breakpoints.down('lg')); useTitle(t('nav.dashboard')); const [data, setData] = useState(null); const [loading, setLoading] = useState(true); @@ -216,7 +216,7 @@ const Dashboard: React.FC = () => { border: '1px solid', borderColor: 'divider' }}> - + @@ -257,55 +257,57 @@ const Dashboard: React.FC = () => { {activeTab === 0 && ( {/* Filter Controls for Reviews */} - - - setRatedSearch(e.target.value)} - slotProps={{ input: { startAdornment: } }} - sx={{ - bgcolor: 'background.paper', - borderRadius: 1, - '& .MuiOutlinedInput-root': { borderRadius: 1, height: 44 } - }} - /> - - - - - {ratedCategories.map(cat => ( - r.category_name === cat)?.category_slug}`, { defaultValue: cat })} - onClick={() => setRatedCategory(cat)} - color={ratedCategory === cat ? 'primary' : 'default'} - variant={ratedCategory === cat ? 'filled' : 'outlined'} - sx={{ fontWeight: 'bold', height: 36, px: 0.5, borderRadius: 1, fontSize: '0.85rem' }} - /> - ))} - - + + + + setRatedSearch(e.target.value)} + slotProps={{ input: { startAdornment: } }} + sx={{ + bgcolor: 'background.paper', + borderRadius: 1, + '& .MuiOutlinedInput-root': { borderRadius: 1, height: { xs: 48, lg: 40 } } + }} + /> + + + + + {ratedCategories.map(cat => ( + r.category_name === cat)?.category_slug}`, { defaultValue: cat })} + onClick={() => setRatedCategory(cat)} + color={ratedCategory === cat ? 'primary' : 'default'} + variant={ratedCategory === cat ? 'filled' : 'outlined'} + sx={{ fontWeight: 'bold', height: { xs: 36, lg: 32 }, borderRadius: 1, fontSize: '0.8rem', flexShrink: 0 }} + /> + ))} + + - - - - - + + + + + + - + {filteredAndSortedRated.length === 0 ? ( @@ -323,7 +325,7 @@ const Dashboard: React.FC = () => { transition: 'border-color 0.2s', '&:hover': { borderColor: 'primary.main' } }}> - + {editingRatingId === rating.id ? ( {t('dashboard.editingReview', { flavor: rating.flavor_name })} @@ -431,55 +433,57 @@ const Dashboard: React.FC = () => { {activeTab === 1 && ( {/* Filter Controls for Explore */} - - - setExploreSearch(e.target.value)} - slotProps={{ input: { startAdornment: } }} - sx={{ - bgcolor: 'background.paper', - borderRadius: 1, - '& .MuiOutlinedInput-root': { borderRadius: 1, height: 44 } - }} - /> - - - - - {exploreCategories.map(cat => ( - f.category_name === cat)?.category_slug}`, { defaultValue: cat })} - onClick={() => setExploreCategory(cat)} - color={exploreCategory === cat ? 'primary' : 'default'} - variant={exploreCategory === cat ? 'filled' : 'outlined'} - sx={{ fontWeight: 'bold', height: 36, px: 0.5, borderRadius: 1, fontSize: '0.85rem' }} - /> - ))} - - + + + + setExploreSearch(e.target.value)} + slotProps={{ input: { startAdornment: } }} + sx={{ + bgcolor: 'background.paper', + borderRadius: 1, + '& .MuiOutlinedInput-root': { borderRadius: 1, height: { xs: 48, lg: 40 } } + }} + /> + + + + + {exploreCategories.map(cat => ( + f.category_name === cat)?.category_slug}`, { defaultValue: cat })} + onClick={() => setExploreCategory(cat)} + color={exploreCategory === cat ? 'primary' : 'default'} + variant={exploreCategory === cat ? 'filled' : 'outlined'} + sx={{ fontWeight: 'bold', height: { xs: 36, lg: 32 }, borderRadius: 1, fontSize: '0.8rem', flexShrink: 0 }} + /> + ))} + + - - - - - + + + + + + - + {filteredMissing.length === 0 ? ( @@ -488,7 +492,7 @@ const Dashboard: React.FC = () => { ) : ( {filteredMissing.map(flavor => ( - + = ({ adminMode }) => { } }} /> - + = ({ adminMode }) => { {items.map((rating: Rating) => ( - + alpha(theme.palette.background.paper, 0.4), @@ -555,7 +555,7 @@ const PublicProfile: React.FC = ({ adminMode }) => { No followers yet. ) : ( data.followers.map(user => ( - + {user.username.charAt(0)} @@ -588,7 +588,7 @@ const PublicProfile: React.FC = ({ adminMode }) => { Not following anyone yet. ) : ( data.following.map(user => ( - + {user.username.charAt(0)} diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index bb4bcf9..cc37bea 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -208,7 +208,7 @@ const Settings: React.FC = ({ themeName, onThemeChange }) => { {/* Left Column: Visuals & Language */} - + {t('settings.appearanceTitle')} @@ -272,7 +272,7 @@ const Settings: React.FC = ({ themeName, onThemeChange }) => { {/* Right Column: Account Info & Security */} - + {t('settings.infoTitle')}
diff --git a/frontend/src/pages/flavors/FlavorDetail.tsx b/frontend/src/pages/flavors/FlavorDetail.tsx index 8830cbe..ec95aaa 100644 --- a/frontend/src/pages/flavors/FlavorDetail.tsx +++ b/frontend/src/pages/flavors/FlavorDetail.tsx @@ -229,7 +229,7 @@ const FlavorDetail: React.FC = ({ adminMode }) => { {/* Main Content Grid */} {/* Left: Product Info Card */} - + = ({ adminMode }) => { {/* Right: Ratings & Comments */} - + Ratings & Comments