Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 1, 2025

Summary

Adds a collapsible left sidebar with a toggle button that allows users to collapse/expand the sidebar to maximize content viewing area.

Changes

  • Added toggle button with collapse/expand chevron icons positioned at the sidebar edge
  • Implemented smooth CSS transitions for sidebar collapse animation
  • Persisted collapsed state in localStorage so preference is remembered across sessions
  • Added dark mode styling for the toggle button
  • Hidden toggle on mobile (sidebar is already hidden on mobile via existing styles)

Implementation Details

The toggle button is positioned absolutely at the edge of the sidebar using left: var(--sidebar-width). When collapsed, the sidebar animates to width: 0 with opacity fade, and the main content area automatically expands to fill the space (using existing flex: 1 on .main-content).

Demo

Collapsible sidebar demo

View original video (rec-7c926f0b0b804221a57d388a5e596c8a-edited.mp4)

Human Review Checklist

  • Verify toggle button appears correctly at sidebar edge in both light/dark modes
  • Test collapse/expand animation is smooth
  • Verify localStorage persistence works (collapse sidebar, refresh page)
  • Confirm toggle is hidden on mobile viewports (< 768px)
  • Check that main content properly expands when sidebar is collapsed

Link to Devin run: https://app.devin.ai/sessions/0ead07659f21451286e14d37c0f837de
Requested by: Fatih Kadir Akın ([email protected]) (@f)

- Add sidebar toggle button with collapse/expand icons
- Implement smooth CSS transitions for sidebar collapse
- Persist collapsed state in localStorage
- Support dark mode styling for toggle button
- Hide toggle on mobile (sidebar already hidden on mobile)

Co-Authored-By: Fatih Kadir Akın <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

Original prompt from Fatih Kadir Akın
make left sidebar collapsible

You only need to look in the following repo: f/awesome-chatgpt-prompts

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

/ai resolve

@f f merged commit 400f88f into main Dec 1, 2025
6 checks passed
@f f deleted the devin/1764606875-collapsible-sidebar branch December 1, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants