From 64d36c06ef3238e83f80e2ed4c24e165da05b72f Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Wed, 7 Oct 2020 20:50:32 -0700 Subject: [PATCH 1/2] Make crate menu onclick rather than onhover. This makes for a more consistent experience on mobile and desktop. It also, in my opinion, makes for better usability. It's always clear how to close a menu - the same way as you opened it, by clicking. It means that menus aren't opened by stray mouse movements. There are more details on the usability of hover menus at https://uxmovement.com/navigation/why-hover-menus-do-users-more-harm-than-good/. --- templates/rustdoc/header.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/rustdoc/header.html b/templates/rustdoc/header.html index ffb10537c..f57244d0c 100644 --- a/templates/rustdoc/header.html +++ b/templates/rustdoc/header.html @@ -21,8 +21,8 @@ @@ -212,7 +216,7 @@ {# Display the platforms that the release has been built for #} -
  • +
  • {{ "cogs" | fas(fw=true) }} Platform From bf318716ff020db6cf64e5ccd042859cb75c7522 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Wed, 7 Oct 2020 22:26:26 -0700 Subject: [PATCH 2/2] Switch to more information. --- templates/rustdoc/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/rustdoc/header.html b/templates/rustdoc/header.html index f57244d0c..084745898 100644 --- a/templates/rustdoc/header.html +++ b/templates/rustdoc/header.html @@ -98,7 +98,7 @@ - {{ "cube" | fas(fw=true) }} Crate page on docs.rs + {{ "cube" | fas(fw=true) }} More information