diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-06-12 17:30:36 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-06-13 22:15:31 +0200 |
commit | 127ead34c42cabb65cfd2170555dd53b9abf0be3 (patch) | |
tree | 49176debdcdcb9fd7a6e8be6cac5bcc9b546636f /app/javascript/flavours/glitch/features/ui/components | |
parent | b191861e15d03322fffa34696bba842eedcadaec (diff) |
Restore navigation bar position glitch-soc setting
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui/components')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/components/columns_area.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/components/columns_area.js b/app/javascript/flavours/glitch/features/ui/components/columns_area.js index 2e28bbe50..74434bb7e 100644 --- a/app/javascript/flavours/glitch/features/ui/components/columns_area.js +++ b/app/javascript/flavours/glitch/features/ui/components/columns_area.js @@ -51,6 +51,7 @@ export default class ColumnsArea extends ImmutablePureComponent { swipeToChangeColumns: PropTypes.bool, singleColumn: PropTypes.bool, children: PropTypes.node, + navbarUnder: PropTypes.bool, }; state = { @@ -156,7 +157,7 @@ export default class ColumnsArea extends ImmutablePureComponent { } render () { - const { columns, children, singleColumn, swipeToChangeColumns, intl } = this.props; + const { columns, children, singleColumn, swipeToChangeColumns, intl, navbarUnder } = this.props; const { shouldAnimate } = this.state; const columnIndex = getIndex(this.context.router.history.location.pathname); @@ -182,8 +183,9 @@ export default class ColumnsArea extends ImmutablePureComponent { </div> <div className='columns-area__panels__main'> - <TabsBar key='tabs' /> + {!navbarUnder && <TabsBar key='tabs' />} {content} + {navbarUnder && <TabsBar key='tabs' />} </div> <div className='columns-area__panels__pane columns-area__panels__pane--start columns-area__panels__pane--navigational'> |