From 16bec7c269cdc3c6945d4185b37edadc5922351e Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Fri, 13 May 2022 09:39:38 +0100 Subject: [PATCH] portal: allow sidebar to scroll on smaller screens --- app/portal/static/portal.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/portal/static/portal.css b/app/portal/static/portal.css index 26bf8ce..6fa0e80 100644 --- a/app/portal/static/portal.css +++ b/app/portal/static/portal.css @@ -24,6 +24,8 @@ body { z-index: 100; /* Behind the navbar */ padding: 48px 0 0; /* Height of navbar */ box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); + overflow-x: hidden; + overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ } @media (max-width: 767.98px) {