From ed23aee7ebe37d6ed88924ab008d40fe6f36863f Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 19 Aug 2017 10:18:50 -0700 Subject: [PATCH] crate.scss: When rendering code in README, don't show scrollbar unless necessary The current `overflow-x: scroll` shows a scrollbar all the time, even for code blocks that don't need them. Switch to `overflow-x: auto`, to only show the scrollbar when needed. --- app/styles/crate.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/styles/crate.scss b/app/styles/crate.scss index b590aef5cf3..cc8f6f81a9f 100644 --- a/app/styles/crate.scss +++ b/app/styles/crate.scss @@ -307,7 +307,7 @@ line-height: 1.5; pre { - overflow-x: scroll; + overflow-x: auto; } } .last-update {