From 15347e23f69889546c03845be78ed18280806850 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Thu, 23 Apr 2020 00:16:56 +0200 Subject: [PATCH 1/2] 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` From fd2150628ba64d096b612d48ba0733e4221b0669 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Thu, 23 Apr 2020 00:18:23 +0200 Subject: [PATCH 2/2] Update storyshots --- .../ui-components/src/__snapshots__/storyshots.test.ts.snap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 9e6a8a7200..963d715e57 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -34615,7 +34615,7 @@ exports[`Storyshots Navigation|Secondary Default 1`] = ` className="column is-3" >