Skip to content

Commit

Permalink
Fix display of item info and unify their height
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 26, 2022
1 parent 7f93d4a commit 51e658f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,14 @@ table,
}

.item-info .stab {
display: inline-block;
width: fit-content;
/* This min-height is needed to unify the height of the stab elements because some of them
have emojis.
*/
min-height: 36px;
display: flex;
align-items: center;
white-space: pre-wrap;
}
.stab {
padding: 3px;
Expand All @@ -1121,6 +1128,7 @@ table,
}
.stab p {
display: inline;
margin: 0;
}

.stab .emoji {
Expand Down

0 comments on commit 51e658f

Please sign in to comment.