PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

Feat: Add toggle button to collapse sidebar and give more space for photos

Open VasuS609 opened this issue 10 months ago • 6 comments

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!

Image

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

VasuS609 avatar Jan 05 '26 00:01 VasuS609

👋 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 :)

github-actions[bot] avatar Jan 05 '26 00:01 github-actions[bot]

Hey @aashu2006, I have been already working on it.

VasuS609 avatar Jan 05 '26 14:01 VasuS609

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

VasuS609 avatar Jan 05 '26 16:01 VasuS609

@rahulharpal1603 i wnat to work on this issue

g-k-s-03 avatar May 30 '26 09:05 g-k-s-03

@rahulharpal1603 /assign #942

Assign this to me if it is still not resolved.

Solankiiii01 avatar Oct 05 '26 02:10 Solankiiii01

@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.

g-k-s-03 avatar Oct 05 '26 18:10 g-k-s-03