Skip to content

Rustdoc responsive design makes suboptimal tradeoffs, especially on tall windows #43571

Closed
@the8472

Description

@the8472

When displaying IDE and a browser showing rustdocs side by side I can easily end up with a 800x1400 viewport. At that resolution the sidebar takes up a large fraction of the space, forcing unnecessary linebreaks.

At lower widths (<700px) media queries use a different layout without the sidebar, but that also has problems. For one it hides the [-] toggle on the top right which I like to use to get a more compact overview due to the lack of method indexes (#40273). Secondly, it mostly removes the sidebar's content. With enough vertical screen estate it might make more sense to just move it to the top or bottom.

viewport

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.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