Skip to content

Commit 75cc2b8

Browse files
Fix display of long inline cfg labels
1 parent 32d81ec commit 75cc2b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,8 @@ so that we can apply CSS-filters to change the arrow color in themes */
971971
display: flex;
972972
padding: 3px;
973973
margin-bottom: 5px;
974+
align-items: center;
975+
vertical-align: text-bottom;
974976
}
975977
.item-name .stab {
976978
margin-left: 0.3125em;
@@ -982,11 +984,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
982984
color: var(--main-color);
983985
background-color: var(--stab-background-color);
984986
width: fit-content;
985-
align-items: center;
986987
white-space: pre-wrap;
987988
border-radius: 3px;
988-
display: inline-flex;
989-
vertical-align: text-bottom;
989+
display: inline;
990990
}
991991

992992
.stab.portability > code {

0 commit comments

Comments
 (0)