File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -729,6 +729,13 @@ export const Controls: React.FC<ControlsProps> = ({
729729 >
730730 < BookOpen className = "w-4 h-4" />
731731 </ button >
732+ < button
733+ onClick = { ( ) => setIsGalleryOpen ( true ) }
734+ className = { `p-2 rounded-lg transition-colors ${ isLightMode ? 'text-neutral-600 hover:bg-neutral-100' : 'text-neutral-400 hover:bg-neutral-800' } ` }
735+ title = "Media Gallery"
736+ >
737+ < ImageIcon className = "w-4 h-4" />
738+ </ button >
732739 </ div >
733740
734741 { /* Divider */ }
@@ -1735,33 +1742,13 @@ export const Controls: React.FC<ControlsProps> = ({
17351742 </ div >
17361743
17371744 { /* Galleries */ }
1738- { /* Galleries */ }
1739- < div className = "pt-2 border-t border-white/5" >
1740- < button
1741- id = "media-gallery-btn"
1742- onClick = { ( ) => setIsGalleryOpen ( true ) }
1743- className = { `w-full flex items-center justify-between p-3 rounded-lg border transition-all group ${ isLightMode ? 'bg-neutral-50 border-neutral-200 hover:bg-neutral-100' : 'bg-white/5 border-white/10 hover:bg-white/10' } ` }
1744- >
1745- < div className = "flex items-center gap-2" >
1746- < div className = { `p-1.5 rounded-md ${ isLightMode ? 'bg-white shadow-sm text-blue-600' : 'bg-black/40 text-blue-400' } ` } >
1747- < ImageIcon className = "w-4 h-4" />
1748- </ div >
1749- < div className = "text-left" >
1750- < div className = { `text-xs font-bold ${ isLightMode ? 'text-neutral-900' : 'text-white' } ` } > Media Gallery</ div >
1751- < div className = { `text-[9px] ${ subtleText } ` } > { snapshots . length } images • { movies . length } videos</ div >
1752- </ div >
1753- </ div >
1754- < ChevronDown className = "-rotate-90 w-3 h-3 opacity-50 group-hover:opacity-100 transition-opacity" />
1755- </ button >
1756- </ div >
1757-
17581745 </ div >
17591746 </ SidebarSection >
17601747 </ div >
17611748 </ div >
17621749
17631750 { /* Gallery Modal (Replaces old previews) */ }
1764- < GalleryModal
1751+ < GalleryModal
17651752 isOpen = { isGalleryOpen }
17661753 onClose = { ( ) => setIsGalleryOpen ( false ) }
17671754 snapshots = { snapshots }
You can’t perform that action at this time.
0 commit comments