Skip to content

Commit 51e658f

Browse files
Fix display of item info and unify their height
1 parent 7f93d4a commit 51e658f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,14 @@ table,
11111111
}
11121112

11131113
.item-info .stab {
1114-
display: inline-block;
1114+
width: fit-content;
1115+
/* This min-height is needed to unify the height of the stab elements because some of them
1116+
have emojis.
1117+
*/
1118+
min-height: 36px;
1119+
display: flex;
1120+
align-items: center;
1121+
white-space: pre-wrap;
11151122
}
11161123
.stab {
11171124
padding: 3px;
@@ -1121,6 +1128,7 @@ table,
11211128
}
11221129
.stab p {
11231130
display: inline;
1131+
margin: 0;
11241132
}
11251133

11261134
.stab .emoji {

0 commit comments

Comments
 (0)