Secondary menu no longer scrolls beyond a certain screen size in order to be able to display all elements

This commit is contained in:
Florian Scholdei
2020-04-23 00:16:56 +02:00
parent 02d3f5cf6a
commit 15347e23f6

View File

@@ -38,6 +38,11 @@ const SectionContainer = styled.aside`
position: sticky; position: sticky;
position: -webkit-sticky; /* Safari */ position: -webkit-sticky; /* Safari */
top: 2rem; top: 2rem;
@media (max-height: 900px) {
position: relative;
top: 0;
}
`; `;
const Icon = styled.i<CollapsedProps>` const Icon = styled.i<CollapsedProps>`