Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !8697

Merged
Created Jan 30, 2015 by Administrator@rootOwner

Adds persistent collapse button for left side bar

  • Overview 51
  • Commits 1
  • Changes 7

Created by: jasonblanchard

Fixes #8684 (closed) by adding a "collapse" and "expand" button on the left sidebar nav. State is stored in the session hash as suggested by @randx.

The purpose of this change is to allow for more screen real estate for larger viewports.

Here's what it looks like expanded

expanded

Here is is collapsed (ahhh, so refreshing :)

collapsed

The option is hidden on small viewports:

small

I'm not super in love with the button placement, so let me know if folks have other suggestions.

Note that I hit this bug https://github.com/activeadmin/activeadmin/issues/512 when testing the helper with the session hash. I used the fix suggested in that issue which required that I changed a few other tests. Everything appears to be working locally, but let me know if it causes other problems.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/jasonblanchard/collapseable-nav