Feat: Add toggle button to collapse sidebar and give more space for photos
Describe the feature
The Issue: Right now, the sidebar is always visible, which takes up screen space that could be used to show more photos — especially on smaller screens or in fullscreen mode.
Suggestion Add a collapse/expand toggle button (like the chevron in Notion or VS Code) at the top of the sidebar so users can:
Hide the sidebar to see more images at once
- Keep it accessible via icons + hover tooltips when collapsed
- Have their preference saved between app restarts
Why it’s a good fit
Better gallery experience: More space = bigger thumbnails, less scrolling Low effort: Uses existing tools (Lucide icons, Radix tooltips, Tauri store) No breaking changes: Pure frontend tweak (~50 lines) User control: People can choose what works for their screen This is a small change with a noticeable improvement in daily use. Would you be open to this? I’d be happy to raise a PR!
Add ScreenShots
https://github.com/user-attachments/assets/42792131-a33e-4b66-9566-9103805526a0
Record
- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
Hey @aashu2006, I have been already working on it.
Added a collapsible sidebar with a rotating toggle button. State is managed via useSidebar() and persisted using cookies, so it stays consistent after reload. Footer text and title render only when expanded, while the toggle remains visible in collapsed mode. Transitions are optimized for smooth performance, and the sidebar is positioned below the navbar to avoid overlap.
Modified: AppSidebar.tsx sidebar.tsx
https://github.com/user-attachments/assets/1217f238-4fcb-490a-8803-4c0fdb074e3a
@rahulharpal1603 i wnat to work on this issue
@rahulharpal1603 /assign #942
Assign this to me if it is still not resolved.
@rohan-pandeyy I would like to work on this issue. I noticed that @rahulharpal1603 had previously assigned and then unassigned this issue. I have already started working on it and my PR is nearly complete. Could you please assign this issue to me? I will raise the PR shortly for review.