Skip to content

Crates sidebar menu in docs disappears when page width is less than 700px #36531

Closed
@carols10cents

Description

@carols10cents

This can be confusing; it makes it look like there aren't any docs available. Example:

@bruceadams was following along with Chapter 2 in the new book, and we mention cargo doc --open after adding the regex crate. At the time he ran the command, his browser window was under 700px wide because he had his screen split to have the book and editor/terminal open at the same time, so the docs opened themselves in that narrow window. The menu with the crates in the sidebars is just totally gone at that width, and that combined with the fact that the guessing game doesn't have any docs that would appear on the index page makes the docs look broken and like there aren't any docs to browse :(

Screenshot of this scenario:

screen shot 2016-09-16 at 9 33 26 am

The problem is this CSS:

@media (max-width: 700px) {
   // ...
  .sidebar .block {
    display: none;
  }
  // ...
}

It'd be awesome to have at least a hamburger menu or something to be able to get to the menu of crates even at narrower widths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions