From 51e658f966a2c57d9d637747b457a5f9e087ec8d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 26 Jul 2022 21:34:56 +0200 Subject: Fix display of item info and unify their height --- src/librustdoc/html/static/css/rustdoc.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/librustdoc/html/static/css') diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 70b7a47bcd5..1ade33e4fcc 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1111,7 +1111,14 @@ table, } .item-info .stab { - display: inline-block; + width: fit-content; + /* This min-height is needed to unify the height of the stab elements because some of them + have emojis. + */ + min-height: 36px; + display: flex; + align-items: center; + white-space: pre-wrap; } .stab { padding: 3px; @@ -1121,6 +1128,7 @@ table, } .stab p { display: inline; + margin: 0; } .stab .emoji { -- cgit 1.4.1-3-g733a5