diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e25e18e..b087fec 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -481,7 +481,7 @@ const App: React.FC = () => { onClose={() => setNotifAnchorEl(null)} elevation={3} sx={{ mt: 1 }} - PaperProps={{ sx: { width: 320, maxHeight: 400 } }} + PaperProps={{ sx: { width: 320, maxHeight: 400, borderRadius: 1 } }} > Notifications diff --git a/frontend/src/components/RatingBadge.tsx b/frontend/src/components/RatingBadge.tsx index 9fc6eff..877b587 100644 --- a/frontend/src/components/RatingBadge.tsx +++ b/frontend/src/components/RatingBadge.tsx @@ -14,16 +14,17 @@ const RatingBadge: React.FC = ({ score, size = 'medium', sx }) return ( = ({ score, size = 'medium', sx }) }}> {typeof score === 'number' ? (isLarge ? score.toFixed(1) : score.toFixed(0)) : score} @@ -41,6 +42,8 @@ const RatingBadge: React.FC = ({ score, size = 'medium', sx }) fontSize: isLarge ? '0.75rem' : (isSmall ? '0.55rem' : '0.65rem'), fontWeight: '900', opacity: 0.9, + lineHeight: 1, + mt: 0.2 }} > / 10 diff --git a/frontend/src/pages/CommunityFeed.tsx b/frontend/src/pages/CommunityFeed.tsx index bc7c4e0..61beefa 100644 --- a/frontend/src/pages/CommunityFeed.tsx +++ b/frontend/src/pages/CommunityFeed.tsx @@ -299,12 +299,12 @@ const CommunityFeed: React.FC = ({ adminMode }) => { ) : ( - {t('dashboard.noRatings')} + No comment provided. )} - - + + @@ -376,7 +376,7 @@ const CommunityFeed: React.FC = ({ adminMode }) => { {/* Notifications Widget */} - + {t('community.notifications')} @@ -406,7 +406,7 @@ const CommunityFeed: React.FC = ({ adminMode }) => { {/* Following Widget */} - + {t('nav.following')} @@ -417,6 +417,7 @@ const CommunityFeed: React.FC = ({ adminMode }) => { value={followingSearch} onChange={(e) => setFollowingSearch(e.target.value)} InputProps={{ startAdornment: }} + sx={{ '& .MuiOutlinedInput-root': { borderRadius: 1 } }} /> @@ -430,7 +431,7 @@ const CommunityFeed: React.FC = ({ adminMode }) => { {/* Top Rated by Circle */} - + {t('community.topRated')} @@ -439,7 +440,9 @@ const CommunityFeed: React.FC = ({ adminMode }) => { {topFollowed.map((flavor, idx) => ( {idx + 1} - + + + { const { t } = useTranslation(); const navigate = useNavigate(); const theme = useTheme(); + const isMobile = useMediaQuery(theme.breakpoints.down('md')); useTitle(t('nav.dashboard')); const [data, setData] = useState(null); const [loading, setLoading] = useState(true); @@ -255,43 +256,56 @@ const Dashboard: React.FC = () => { {/* TAB 0: MY REVIEWS */} {activeTab === 0 && ( - - + {/* Filter Controls for Reviews */} + + setRatedSearch(e.target.value)} slotProps={{ input: { startAdornment: } }} - sx={{ bgcolor: 'background.paper', borderRadius: 1, '& .MuiOutlinedInput-root': { borderRadius: 1, height: 40 } }} + 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: 32, px: 0.5, borderRadius: 1, fontSize: '0.8rem' }} - /> - ))} - - - - - - + + + + + {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' }} + /> + ))} + + + + + + + + + + {filteredAndSortedRated.length === 0 ? ( @@ -416,44 +430,56 @@ const Dashboard: React.FC = () => { {/* TAB 1: EXPLORE NEW */} {activeTab === 1 && ( - {/* Filter Controls */} - - + {/* Filter Controls for Explore */} + + setExploreSearch(e.target.value)} slotProps={{ input: { startAdornment: } }} - sx={{ bgcolor: 'background.paper', borderRadius: 1, '& .MuiOutlinedInput-root': { borderRadius: 1, height: 40 } }} + 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: 32, px: 0.5, borderRadius: 1, fontSize: '0.8rem' }} - /> - ))} - - - - - - + + + + + {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' }} + /> + ))} + + + + + + + + + + {filteredMissing.length === 0 ? (