-
Notifications
You must be signed in to change notification settings - Fork 13k
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 docblock code display on mobile #89632
Conversation
Some changes occurred in HTML/CSS/JS. |
Thanks for writing! See my comment: #89618 (comment). I think we should use |
11a867b
to
a518d1d
Compare
Updated! (I also updated the image.) |
@bors r=me |
@bors: r=jsha |
📌 Commit a518d1d778e1a12344862920ba236b8d228daef4 has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors: r- |
@dns2utf8 Just like I told you. ^ :) |
a518d1d
to
d4f3cf0
Compare
Thanks to @dns2utf8's help, we were able to find that a long |
I prefer to not change the layout too much considering that it's not what's being tested here. ;) |
Good point 👍 |
@@ -1969,4 +1969,8 @@ details.undocumented[open] > summary::before { | |||
.docblock { | |||
margin-left: 12px; | |||
} | |||
|
|||
.docblock code { | |||
overflow-wrap: anywhere; |
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.
Why not add that rule for all the layouts? If someone tries to break the record for longest symbol name we could allow breaking on desktop too
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.
There is already a rule for desktop, a bit less restrictive but that prevents it from being an issue there.
@bors: r=jsha |
📌 Commit d4f3cf0 has been approved by |
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#89579 (Add regression test for issue 80108) - rust-lang#89632 (Fix docblock code display on mobile) - rust-lang#89691 (Move `DebuggerCommands` and `check_debugger_output` to a separate module) - rust-lang#89707 (Apply clippy suggestions for std) - rust-lang#89722 (Fix spelling: Cannonical -> Canonical) - rust-lang#89736 (Remove unused CSS rule) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #89618.
Before:
After:
r? @jsha