Skip to content

Commit

Permalink
rustdoc: short descr. cause word-breaks in tables
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Kijewski committed Jul 21, 2024
1 parent 5069856 commit 9533544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ table,
display: table;
padding: 0;
margin: 0;
width: 100%;
}
.item-table > li {
display: table-row;
Expand Down

0 comments on commit 9533544

Please sign in to comment.