From 15347e23f69889546c03845be78ed18280806850 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Thu, 23 Apr 2020 00:16:56 +0200 Subject: [PATCH] Secondary menu no longer scrolls beyond a certain screen size in order to be able to display all elements --- scm-ui/ui-components/src/navigation/SecondaryNavigation.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scm-ui/ui-components/src/navigation/SecondaryNavigation.tsx b/scm-ui/ui-components/src/navigation/SecondaryNavigation.tsx index 59e3593ef2..8de1b30c1a 100644 --- a/scm-ui/ui-components/src/navigation/SecondaryNavigation.tsx +++ b/scm-ui/ui-components/src/navigation/SecondaryNavigation.tsx @@ -38,6 +38,11 @@ const SectionContainer = styled.aside` position: sticky; position: -webkit-sticky; /* Safari */ top: 2rem; + + @media (max-height: 900px) { + position: relative; + top: 0; + } `; const Icon = styled.i`