Closed
Labels
C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Description
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.
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.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Activity
lolbinarycat commentedon Apr 3, 2025
Apparently you can actually drag to resize the sidebar, however it's quite precise and the discoverability is quite bad.
lolbinarycat commentedon Apr 3, 2025
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.
lolbinarycat commentedon Apr 3, 2025
Also, we have a weird alternative "show sidebar" icon that shows up when you resize the sidebar to 0?
lolbinarycat commentedon Apr 3, 2025
It's also worth noting that the
col-resizecursor doesn't seem to be working on my end, although changing it toe-resizedid work.lolbinarycat commentedon May 29, 2025
fixed on desktop by #139562, and fixed on mobile by #139831