-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 display of long items in search results #113100
Fix display of long items in search results #113100
Conversation
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha |
This comment has been minimized.
This comment has been minimized.
3fc9f77
to
c3eda45
Compare
Good point. |
@@ -8,6 +8,7 @@ | |||
|
|||
:root { | |||
--nav-sub-mobile-padding: 8px; | |||
--search-typename-width: 6.75rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intentionally increase this from 6.25rem
to 6.75rem
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes because the whitespace is not displayed anymore because of display: flex
. The rendering is the same though.
c3eda45
to
9adbe63
Compare
Fix what @notriddle mentioned and updated online demo. |
9adbe63
to
00cf60a
Compare
Good catch! I fixed that, updated the demo and added a GUI test. |
This comment has been minimized.
This comment has been minimized.
00cf60a
to
a716c79
Compare
Fixed tidy. |
@bors r+ rollup |
Rollup of 5 pull requests Successful merges: - rust-lang#112946 (Improve cgu naming and ordering) - rust-lang#113048 (Fix build on Solaris where fd-lock cannot be used.) - rust-lang#113100 (Fix display of long items in search results) - rust-lang#113107 (add check for ConstKind::Value(_) to in_operand()) - rust-lang#113119 (rustdoc: Reduce internal function visibility.) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #113060.
You can test the result here.
To make it a bit better, I also reduced a bit the size of the short documentation from half to 2 fifth of the width.
r? @notriddle