From 5a3625d426bbd143e8178ae76e4d7939c6c96024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20St=C3=A5hl?= Date: Thu, 25 Apr 2019 19:06:04 +0200 Subject: [PATCH] Explicitly set height on rust logo element in docs The layout of the left side menu in docs reflows when navigating between pages because of missing height on the element of rust logo. Setting height='100' tells the browser to reserve that vertical space, leading to a less janky experience. --- src/librustdoc/html/layout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index acf019fd2254..7453c90bf96c 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -183,13 +183,13 @@ pub fn render( if layout.logo.is_empty() { format!("\ logo", + alt='logo' width='100' height='100'>", path=p, static_root_path=static_root_path, suffix=page.resource_suffix) } else { format!("\ - logo", + logo", p, layout.logo) }