Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Re-add navigationBarWrapper
Browse files Browse the repository at this point in the history
Addresses #9283

See discussion on #9851 (comment)
  • Loading branch information
Suguru Hirahara committed Jul 23, 2017
1 parent 84b5f89 commit 1561e50
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions app/renderer/components/navigation/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,26 +155,6 @@ class Navigator extends React.Component {
ipc.off(messages.SHORTCUT_ACTIVE_FRAME_FORWARD, this.onForward)
}

// BEM Level: navigator__menuBarAndNavigationBar__navigationBarWrapper
get navigationBarWrapper () {
return <div className={cx({
navigationBarWrapper: true,
[css(styles.navigationBarWrapper)]: true
})}
onDoubleClick={this.onDoubleClick}
onDragOver={this.onDragOver}
onDrop={this.onDrop}
>
{this.topLevelStartButtons}
{
this.props.showNavigationBar
? <NavigationBar />
: null
}
{this.topLevelEndButtons}
</div>
}

// BEM Level: navigator__menuBarAndNavigationBar__navigationBarWrapper__topLevelStartButtons
get topLevelStartButtons () {
return <div className={cx({
Expand Down Expand Up @@ -403,7 +383,22 @@ class Navigator extends React.Component {
</div>
: null
}
{this.navigationBarWrapper}
<div className={cx({
navigationBarWrapper: true,
[css(styles.navigator__menuBarAndNavigationBar__navigationBarWrapper)]: true
})}
onDoubleClick={this.onDoubleClick}
onDragOver={this.onDragOver}
onDrop={this.onDrop}
>
{this.topLevelStartButtons}
{
this.props.showNavigationBar
? <NavigationBar />
: null
}
{this.topLevelEndButtons}
</div>
</div>
{
this.props.isCaptionButton
Expand All @@ -425,7 +420,7 @@ const styles = StyleSheet.create({
whiteSpace: 'nowrap'
},

navigationBarWrapper: {
navigator__menuBarAndNavigationBar__navigationBarWrapper: {
boxSizing: 'border-box',
display: 'flex',
justifyContent: 'space-between',
Expand Down

0 comments on commit 1561e50

Please sign in to comment.