-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
Labels
A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant 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.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Description
Code
/// some really long summary paragraph that doesn't fit on one screen at all and will be truncated.
pub fn foo() {}
Reproduction Steps
- document the crate and open it (via
cargo doc --open
or directly via rustdoc) - search "foo"
- zoom out
- collapse sidebar
- in firefox, make sure "Zoom text only" is enabled
Expected Outcome
All of the extra space means the summary paragraph is visible now.
Actual Output
still an ellipsis.

Version
rustdoc 1.90.0-nightly (9748d87 2025-07-21)
Additional Details
grid-template-columns
generally seems to be given very rough values that do not adapt very well to different screen sizes. This applies both in search results and also to the module pages to some extent.
I used calc(min(33%, 20em)) auto
which seemed to work better for large screen sizes while also working the same for small screens.
The search results page adds a hard ellipsis using js instead of using text-overflow: elipsis
(which I usually dislike but I think is the correct thing to use here)
saethlin
Metadata
Metadata
Assignees
Labels
A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant 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.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.