Skip to content

Create a dropdown for navbar links above a certain number #866

@choldgraf

Description

@choldgraf

When the navbar has too many links in it, the navbar grows to twice the height because the links section takes up an extra line of space. This is a bit confusing to users, doesn't look great, and also breaks some assumptions about navbar height that other parts of the theme use.

Instead, we could ask the NavBar to collapse any links over N into a More dropdown. Here's how it worked in the PyData theme:

Image

And here's the config value for that (it's called n_links_before_dropdown I think)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions