From 434ee8b85251ee14cb0535cbb92b9b28b84f0b8d Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Fri, 26 Jan 2018 16:17:43 +0100 Subject: [PATCH] Display sidebar scroll-bar only if required This fix a regression from #316 (scrollbar was displayed all the time). Note that the padding-bottom value is totally empiric, but proved OK on my Fx and Chrome instances + some responsive tests. There might be finer solutions, feel free :-). --- ihatemoney/static/css/main.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index 4b35b376..94ca4bd8 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -74,12 +74,13 @@ body { background-repeat: no-repeat; height: 100%; color: black; - overflow-y: scroll; + overflow-y: auto; } @media (min-width: 768px) { .sidebar { position: fixed; + padding-bottom: 4.5rem; } }