diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index b898eb5d381e3..bd7c54e6b175d 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1081,15 +1081,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
}
.item-info .stab {
- /* This min-height is needed to unify the height of the stab elements because some of them
- have emojis.
- */
- min-height: 36px;
- display: flex;
+ display: block;
padding: 3px;
margin-bottom: 5px;
- align-items: center;
- vertical-align: text-bottom;
}
.item-name .stab {
margin-left: 0.3125em;
@@ -1100,11 +1094,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
font-weight: normal;
color: var(--main-color);
background-color: var(--stab-background-color);
- width: fit-content;
white-space: pre-wrap;
border-radius: 3px;
display: inline;
- vertical-align: baseline;
}
.stab.portability > code {