Skip to content

Navbar items overlap with brand text when window is narrow #1143

@bheberlein

Description

@bheberlein

In my conf.py, I provided a logo and also set html_theme_options['logo']['text'] to a rather long value (e.g. 'My Package Documentation').

I noticed that, when the window becomes sufficiently narrow, the section links in the header start to overlap on the left with the brand text. This seems like it should be considered a bug.

I was able to solve it with the following:

.navbar-brand, div#navbar-start {
    flex-shrink: 0;
}

.navbar-header-items {
    flex-shrink: 1;
}

Is there a reason why this is not the default styling for the theme? Am I unwittingly breaking other features by doing this? It seems to retain the key theme behaviors as far as I can tell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions