diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 40391b1b4dfee..3367e863c6f6c 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -182,17 +182,18 @@ h1, h2, h3, h4 {
"main-heading-breadcrumbs main-heading-breadcrumbs"
"main-heading-h1 main-heading-toolbar"
"main-heading-sub-heading main-heading-toolbar";
- grid-template-columns: 1fr max-content;
- grid-template-rows: 25px min-content min-content;
+ grid-template-columns: minmax(105px, 1fr) minmax(0, max-content);
+ grid-template-rows: minmax(25px, min-content) min-content min-content;
padding-bottom: 6px;
margin-bottom: 11px;
}
.rustdoc-breadcrumbs {
grid-area: main-heading-breadcrumbs;
- height: 25px;
line-height: 1.25;
display: flex;
+ flex-wrap: wrap;
align-items: end;
+ padding-top: 5px;
}
.rustdoc-breadcrumbs a {
padding: 4px 0;
@@ -928,6 +929,7 @@ rustdoc-toolbar {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
+ min-height: 60px;
}
.docblock code, .docblock-short code,
@@ -1104,17 +1106,17 @@ table,
.search-results-title + .sub-heading {
color: var(--main-color);
display: flex;
- align-items: center;
+ align-items: baseline;
+ white-space: nowrap;
}
#crate-search-div {
/* ensures that 100% in properties of #crate-search-div:after
are relative to the size of this div */
position: relative;
/* allows this div (and with it the