-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rustdoc output performance #22769
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
This snippet actually does something useful, although it might not look like it is a case at the first sight. It truncates short descriptions in the list of items such as in search or at the bottom of the module page. Without this script, horizontal scrolling appears on smaller viewports (ignore the terrible fonts, this is many-years old version of chrome being dumb): There’s not really a good way to preserve this functionality without javascript, because that’s how HTML tables work. |
Could you amend the commit message to contain more details? As it stands it doesn't even contain a reference to the issue in question. |
Done. |
Another solution is to use CSS which has a built in feature to cut off overflow with ellipses. |
Because that doesn't work on tables.
|
@bors: rollup r+ |
Sorry for the delay. |
Fixes #22325