Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Commit

Permalink
Added scroll on navigationMenu when menu is too big
Browse files Browse the repository at this point in the history
(cherry picked from commit 796cc18)
  • Loading branch information
Kuboczoch committed Sep 22, 2021
1 parent 0b0a59c commit 1299317
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/blocks/NavigationMenu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const NavigationMenu = styled('ol')`
flex-direction: column;
position: sticky;
top: 100px;
overflow-y: auto;
max-height: calc(100vh - 125px);
> li:first-of-type {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const CoordinatesCalculationPageView = (props: ICoordinatesCalculationPageViewPr
activePage={props.contentPage}
/>
<ContentPage.DocumentContainer>
<ContentPage.Title>{props.contentPage.fields.title}</ContentPage.Title>
{documentToReactComponents(props.contentPage.fields.content, options)}
<form onSubmit={props.form.handleSubmit(props.onSubmit)}>
<CoordinatesBlock>
Expand Down

1 comment on commit 1299317

@vercel
Copy link

@vercel vercel bot commented on 1299317 Sep 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.