diff --git a/frontend/src/components/gallery/GallerySidebar.tsx b/frontend/src/components/gallery/GallerySidebar.tsx index a0575d27..8f9febdc 100644 --- a/frontend/src/components/gallery/GallerySidebar.tsx +++ b/frontend/src/components/gallery/GallerySidebar.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useRef } from 'react'; -import { X, Download, Filter, SortAsc, Search, Calendar, Type, HardDrive, Check, Upload, Star } from 'lucide-react'; +import { X, Download, Filter, SortAsc, Search, Calendar, Type, HardDrive, Check, Star } from 'lucide-react'; import { Button } from '../common'; import { PhotoCategory } from '../../types'; import { useTranslation } from 'react-i18next'; @@ -139,24 +139,6 @@ export const GallerySidebar: React.FC = ({ {/* Content */}
- {/* Upload Section - Only show on mobile when uploads are allowed */} - {isMobile && allowUploads && onUploadClick && ( -
- -
- )} - {/* Search Section - Hidden for carousel layout */} {galleryLayout !== 'carousel' && (
diff --git a/frontend/src/components/gallery/GalleryView.tsx b/frontend/src/components/gallery/GalleryView.tsx index 76e1f53b..aadbbf60 100644 --- a/frontend/src/components/gallery/GalleryView.tsx +++ b/frontend/src/components/gallery/GalleryView.tsx @@ -608,9 +608,9 @@ export const GalleryView: React.FC = ({ slug, event }) => { ); } - // Upload button only on desktop when sidebar is shown + // Upload button for sidebar layouts (shown on both mobile and desktop) const allowUploads = data?.event?.allow_user_uploads || event?.allow_user_uploads; - if (allowUploads && showSidebar && !isMobile) { + if (allowUploads && showSidebar) { items.push( ); }