From f92cd677114d76d78c73177d21184c83a087a6b6 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 23 May 2023 13:41:59 +0200 Subject: [PATCH] Improve new search result display on mobile --- src/librustdoc/html/static/css/rustdoc.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index d469b397dcfc..167319ba9bd7 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1722,6 +1722,14 @@ in source-script.js display: block; } + .search-results > a > .type-kind { + display: inline-block; + } + .search-results > a > .result-name { + display: inline-block; + margin-left: 7px; + } + /* Display an alternating layout on tablets and phones */ .search-results > a { padding: 5px 0px;