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
  • #20455
Closed
Open
Issue created Aug 03, 2016 by Administrator@rootContributor

dropdown-menu in navbar isn't full-width and obscures elements on mobile

Created by: lvmajor

When navigating mobile website, if we use a dropdown-menu in our navbar, then when expanding it, it hides other navbar items and doesn't expand to take full widht of the menu)

Here is an image in which this issue is apparent:

navbar overflow content hidden

Here is a ply showing the same snippet but with a little modification to the css: http://codeply.com/go/4JLsdMHESx

In this, I modified the dropdown-menu behavior when used inside a navbar that is collapsed and in sight. I know nesting should be avoided but I thought we wouldn't want to change dropdown-menu behavior if not used in this particular scenario... maybe there is a better alternative and if it is the case, I'm totally open to suggestions.

.collapse.in .dropdown-menu { position:relative; width:100%; }

Here is the result in case you don't want to open the ply: fixed dropdown menu in navbar

Maybe we could make the dropdown-menu take the full page-width instead of respecting the padding but that's more of a design decision and I'll let you decide what would be better.

Operating system: Windows 10 Browsers: Chrome 52.0.2743.82, Edge 25.10586.0.0

Assignee
Assign to
Time tracking