Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Make axis-nav-bar mobile modal width a property (#50)
Browse files Browse the repository at this point in the history
* Make mobile modal width a property
* Bump version number
  • Loading branch information
acolytec3 authored Mar 22, 2020
1 parent ad2f246 commit 11db767
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nav-bar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@centrifuge/axis-nav-bar",
"version": "0.3.1",
"version": "0.3.2",
"description": "Nav Bar ",
"author": "razvan <[email protected]>",
"homepage": "https://github.com/centrifuge/axis/tree/master/packages/nav-bar#readme",
Expand Down
4 changes: 3 additions & 1 deletion packages/nav-bar/src/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ interface Props extends BoxProps, StyledThemeProps<ThemeProps> {
mainMenuAlignment?: 'right' | 'left',
sticky?: boolean,
menuItems: MenuItem[],
overlayWidth?: string,
onRouteClick: (item: MenuItem) => void,
}

Expand Down Expand Up @@ -75,6 +76,7 @@ const NavBar: FunctionComponent<Props> = (props) => {
mainMenuAlignment,
theme,
children,
overlayWidth,
...rest
} = props;

Expand Down Expand Up @@ -212,7 +214,7 @@ const NavBar: FunctionComponent<Props> = (props) => {
onClickOutside={closeMenu}
onEsc={closeMenu}
>
<Box width={'70vw'} pad={'medium'}>
<Box width={overlayWidth} pad={{"top":'medium'}}>
<Box fill={'horizontal'} align={'end'}>
<Anchor onClick={closeMenu}>
<icons.close size={icons.size}/>
Expand Down

0 comments on commit 11db767

Please sign in to comment.