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

Commit

Permalink
Merge pull request #8514 from kumarrishav/moveNavLeft
Browse files Browse the repository at this point in the history
move the nav controls to left in full screen mode - in macOS Fix #7872
  • Loading branch information
bsclifton authored May 3, 2017
2 parents c4ba8be + 7a06897 commit 42c9d1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 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,10 @@ class Navigator extends ImmutableComponent {
onDragOver={this.onDragOver}
onDrop={this.onDrop}
>
<div className='backforward'>
<div className={cx({
backforward: true,
fullscreen: isFullScreen()
})}>
<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 42c9d1d

Please sign in to comment.