Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

rustdoc sidebar isn't wide enough #139302

Closed
Closed

Description

@lolbinarycat

I believe the sidebar is currently hardcoded to 200 pixels, and the css is set to truncate long sidebar items.

I could get into a buch of edge cases like font scale, ultrawide monitors, and unusually long section names with common prefixes, but i don't need to, because you can see this problem just by looking at the standard library documentation.

screenshot of stdlib docs

I think this menu should use 90%-100% of the screen width on mobile, and we should remove the truncation so long section names can be fully read.

Activity

  1. added
    T-rustdoc-frontend
    on Apr 3, 2025
  2. added
    needs-triage
    on Apr 3, 2025
  3. lolbinarycat commented on Apr 3, 2025

    @lolbinarycat
    ContributorAuthor

    Apparently you can actually drag to resize the sidebar, however it's quite precise and the discoverability is quite bad.

  4. lolbinarycat commented on Apr 3, 2025

    @lolbinarycat
    ContributorAuthor

    It's not even mentioned in the rustdoc book.

    And regardless, this isn't accessible to mobile users, who should still get a wider sidebar with no truncation.

  5. lolbinarycat commented on Apr 3, 2025

    @lolbinarycat
    ContributorAuthor

    Also, we have a weird alternative "show sidebar" icon that shows up when you resize the sidebar to 0?

    Image

  6. lolbinarycat commented on Apr 3, 2025

    @lolbinarycat
    ContributorAuthor

    It's also worth noting that the col-resize cursor doesn't seem to be working on my end, although changing it to e-resize did work.

  7. added
    C-bug
    and removed
    needs-triage
    on May 1, 2025
  8. lolbinarycat commented on May 29, 2025

    @lolbinarycat
    ContributorAuthor

    fixed on desktop by #139562, and fixed on mobile by #139831

  9. added
    T-rustdoc
    on Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugT-rustdocT-rustdoc-frontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions