Skip to content

Commit 9533544

Browse files
committed
rustdoc: short descr. cause word-breaks in tables
The `.item-table` class is used to display name+description lists, e.g. the exported functions, as a table. If the names are long and the descriptions are short, then the width of the table does not expand to the whole size, but only uses a fraction. This causes a some names to break inside a word. This change makes the table always use 100% of its parent width. The `.width-limiter` wrapper already ensures that the used width still does not become excessive. Signed-off-by: René Kijewski <[email protected]>
1 parent 5069856 commit 9533544

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/html/static/css/rustdoc.css

+1
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ table,
953953
display: table;
954954
padding: 0;
955955
margin: 0;
956+
width: 100%;
956957
}
957958
.item-table > li {
958959
display: table-row;

0 commit comments

Comments
 (0)