diff --git a/frontend/src/components/gallery/GalleryFilter.tsx b/frontend/src/components/gallery/GalleryFilter.tsx index b19b92c..5d9c885 100644 --- a/frontend/src/components/gallery/GalleryFilter.tsx +++ b/frontend/src/components/gallery/GalleryFilter.tsx @@ -13,6 +13,7 @@ interface GalleryFilterProps { favoriteCount?: number; className?: string; isMobile?: boolean; + variant?: 'default' | 'compact'; } export const GalleryFilter: React.FC = ({ @@ -22,7 +23,8 @@ export const GalleryFilter: React.FC = ({ likeCount = 0, favoriteCount = 0, className = '', - isMobile = false + isMobile = false, + variant = 'default' }) => { const { t } = useTranslation(); @@ -30,6 +32,43 @@ export const GalleryFilter: React.FC = ({ return null; } + // Compact icon-only vertical variant (used in sidebar and tight spaces) + if (variant === 'compact') { + return ( +
+
+ + + +
+
+ ); + } + return (
{/* Mobile-optimized vertical layout */} @@ -119,4 +158,4 @@ export const GalleryFilter: React.FC = ({ )}
); -}; \ No newline at end of file +}; diff --git a/frontend/src/components/gallery/GallerySidebar.tsx b/frontend/src/components/gallery/GallerySidebar.tsx index 3ccf002..0a2aaf5 100644 --- a/frontend/src/components/gallery/GallerySidebar.tsx +++ b/frontend/src/components/gallery/GallerySidebar.tsx @@ -225,6 +225,7 @@ export const GallerySidebar: React.FC = ({ likeCount={likeCount} favoriteCount={favoriteCount} className="w-full" + variant="compact" /> )} @@ -328,4 +329,4 @@ export const GallerySidebar: React.FC = ({ ); -}; \ No newline at end of file +};