Skip to content

Commit

Permalink
move the nav controls to left in full screen mode - in macOS Fix brav…
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarrishav committed Apr 28, 2017
1 parent ad18376 commit 008758f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/renderer/components/navigation/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const extensionState = require('../../../common/state/extensionState')
const siteSettingsState = require('../../../common/state/siteSettingsState')

// Util
const {getCurrentWindowId, isMaximized} = require('../../currentWindow')
const {getCurrentWindowId, isMaximized, isFullScreen} = require('../../currentWindow')
const {makeImmutable} = require('../../../common/state/immutableUtil')
const platformUtil = require('../../../common/lib/platformUtil')
const {braveShieldsEnabled} = require('../../../common/state/shieldState')
Expand Down Expand Up @@ -225,7 +225,7 @@ class Navigator extends ImmutableComponent {
onDragOver={this.onDragOver}
onDrop={this.onDrop}
>
<div className='backforward'>
<div className={'backforward' + (isFullScreen() ? ' fullscreen' : '')}>
<div className={cx({
navigationButtonContainer: true,
nav: true,
Expand Down
4 changes: 4 additions & 0 deletions less/navigationBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
.platform--darwin .navigatorWrapper .backforward {
margin-left: @navbarLeftMarginDarwin;

&.fullscreen {
margin-left: 0;
}

// Since we want to keep the navigator centered, we need to calculate the
// difference between the width of the left box and the width of the right box.
@centerOffset: @navbarLeftMarginDarwin + 2 * (@navbarButtonWidth + @navbarButtonSpacing) // width area on the left
Expand Down

0 comments on commit 008758f

Please sign in to comment.