Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #5582
Closed
Open
Issue created Oct 19, 2012 by Administrator@rootContributor

Changes to @navbarCollapseWidth value not reflected in hard-coded media query in responsive-navbar.less

Created by: b3rimbau

If @navbarCollapseWidth is reduced to, say, 767px, then between this width and 980px, a media query at the end of responsive-navbar.less fails to take effect and the .collapse class applied to the navbar hides any dropdown-menu because it overflows.

Here is the media query that is supposed to stop this from happening:

@media (min-width: 980px) {
  .nav-collapse.collapse {
    height: auto !important;
    overflow: visible !important;
  }
}

This hardwired width needs to reflect the value of @navbarCollapseWidth - something like

@temp: @navbarCollapseWidth + 1;

@media (min-width: @temp) {

  // Required to make the collapsing navbar work on regular desktops
  .nav-collapse.collapse {
    height: auto !important;
    overflow: visible !important;
  }

}
Assignee
Assign to
Time tracking