]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #53050 - carols10cents:rustdoc-moar-room, r=GuillaumeGomez
authorkennytm <kennytm@gmail.com>
Sat, 4 Aug 2018 09:20:10 +0000 (17:20 +0800)
committerkennytm <kennytm@gmail.com>
Sat, 4 Aug 2018 09:20:10 +0000 (17:20 +0800)
commitb643351c081fdab7934bb801ba372844be73974f
treec39a300abe563a7577a3280366122cf5baf25dc0
parent52db0ed161cd917908356cdd02624f9dd300966b
parentd5dd37b00ff52099bfed85f242500803beb0dbdf
Rollup merge of #53050 - carols10cents:rustdoc-moar-room, r=GuillaumeGomez

Make left column of rustdoc search results narrower

To make more room for the description of the item

The description often has useful text that helps disambiguate between search results, but very little of it is shown.

As a side effect, this breaks the alignment between the search results and the "In Return Types" tab, which tends to line up above the description-- up until I started investigating this, I thought "In Names"/"In Parameters"/"In Return Types" were column headers and I just never saw search results that had info for the "In Parameters" middle column! Now, with the two columns of search results each taking up about a half, they look more like tabs than column headers.

Types that are long still wrap and look good-- I made some artificially long types in the following screenshots.

Before screenshot:

<img width="1258" alt="screen shot 2018-08-03 at 8 32 35 pm" src="https://user-images.githubusercontent.com/193874/43670805-56e3b3b4-975e-11e8-9296-600837d03de2.png">

After screenshot:

<img width="1239" alt="screen shot 2018-08-03 at 8 31 17 pm" src="https://user-images.githubusercontent.com/193874/43670810-6591f9ac-975e-11e8-9e12-4ea9ab1e5806.png">
src/librustdoc/html/static/rustdoc.css