Uh oh!
There was an error while loading. Please reload this page.
Add word wrap for short descriptions - #77699
Conversation
This comment has been minimized.
This comment has been minimized.
jyn514
commented
Oct 9, 2020
Will this affect word-wrapping in paragraphs with longer text? I saw there was some undesired behavior in rust-lang/blog.rust-lang.org#508 (comment), will that show up here? |
jyn514
commented
Oct 9, 2020
r? @XAMPPRocky I don't feel comfortable reviewing this, I don't know enough about CSS. |
Uh oh!
There was an error while loading. Please reload this page.
XAMPPRocky
commented
Oct 10, 2020
@jyn514 This should be fine as it mostly just affects really long string of characters, most words won’t be broken up unless you set it to |
7ab5583 to
9f1048dCompareUh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Oct 12, 2020
@bors r=XAMPPRocky This seems reasonable; not sure I understand everything it does but it seems better than the status quo. |
bors
commented
Oct 12, 2020
📌 Commit 9f1048d has been approved by |
GuillaumeGomez
commented
Oct 12, 2020
@bors: rollup |
Add word wrap for short descriptions Fixesrust-lang#77652  cc @WaffleLapkin r? @jyn514
Add word wrap for short descriptions Fixesrust-lang#77652  cc @WaffleLapkin r? @jyn514
Rollup of 10 pull requests Successful merges: - rust-lang#77550 (add shims for WithOptConstParam query calls) - rust-lang#77699 (Add word wrap for short descriptions) - rust-lang#77724 (Implement `AsRawFd` for `StdinLock` etc. on WASI.) - rust-lang#77746 (Fix `x.py setup` sets `changelog-seen`) - rust-lang#77784 (Fix intra-docs link in core::ffi::VaList) - rust-lang#77811 (rustdoc: Make some functions private that don't need to be public) - rust-lang#77818 (Mono collector: replace pair of ints with Range) - rust-lang#77831 (Use std methods on char instead of open coding them) - rust-lang#77852 (update url in bootstrap README (gcc-rs -> cc-rs)) - rust-lang#77863 (Remove `mark-i-m` from rustc-dev-guide maintainers) Failed merges: r? `@ghost`
The rules `overflow:hidden` and `text-overflow:ellipses` only have an effect if overflow occurs, which cannot happen because it will just line wrap instead. These rules definitely became obsolete by rust-lang#77699, when the stylesheet was decidedly changed to have line wrapping in short docblocks, but given the bug it was fixing, this probably got broken earlier.
…-overflow, r=GuillaumeGomez rustdoc: remove no-op CSS from `.docblock-short` The rules `overflow:hidden` and `text-overflow:ellipses` only have an effect if overflow occurs, which cannot happen because it will just line wrap instead. These rules definitely became obsolete by rust-lang#77699, when the stylesheet was decidedly changed to have line wrapping in short docblocks, but given the bug it was fixing, this probably got broken earlier.
…-overflow, r=GuillaumeGomez rustdoc: remove no-op CSS from `.docblock-short` The rules `overflow:hidden` and `text-overflow:ellipses` only have an effect if overflow occurs, which cannot happen because it will just line wrap instead. These rules definitely became obsolete by rust-lang#77699, when the stylesheet was decidedly changed to have line wrapping in short docblocks, but given the bug it was fixing, this probably got broken earlier.
…, r=GuillaumeGomez rustdoc: remove no-op CSS from `.docblock-short` The rules `overflow:hidden` and `text-overflow:ellipses` only have an effect if overflow occurs, which cannot happen because it will just line wrap instead. These rules definitely became obsolete by rust-lang/rust#77699, when the stylesheet was decidedly changed to have line wrapping in short docblocks, but given the bug it was fixing, this probably got broken earlier.
Fixes#77652
cc @WaffleLapkin
r? @jyn514