From 2185f49ff1e0d4dfbd5a031421c4b1a748aab995 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 23 Nov 2022 13:28:06 -0700 Subject: [PATCH] rustdoc: simplify `.search-results-title` CSS By using `display: flex`, we still get the never-wrapping layout with `#crate-search-div` maxing out and truncating its text. The title itself winds up always filling its parent, but since `#crate-search` doesn't have `flex-grow` set, it won't fill available space. --- src/librustdoc/html/static/css/rustdoc.css | 3 +-- src/test/rustdoc-gui/search-result-display.goml | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index d4e881ad832..fc375d3cfa8 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -785,8 +785,7 @@ table, margin-top: 0; white-space: nowrap; /* flex layout allows shrinking the