Fixed hovering on close button, mostly
This commit is contained in:
parent
56b576f69d
commit
9fcf5e5708
2 changed files with 5 additions and 5 deletions
|
@ -5,15 +5,15 @@ var NavBar = React.createClass({
|
||||||
handleClose: function (evt) {
|
handleClose: function (evt) {
|
||||||
ipc.send('close');
|
ipc.send('close');
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
<nav id="navbar" className="navbar navbar-default navbar-fixed-top">
|
<nav id="navbar" className="navbar navbar-default navbar-fixed-top">
|
||||||
<div className="container-fluid">
|
<div className="container-fluid">
|
||||||
<a className="navbar-brand">Keyboard Mechanizer</a>
|
<a className="navbar-brand">Keyboard Mechanizer</a>
|
||||||
<ul className="nav navbar-nav navbar-right">
|
<ul className="nav navbar-nav navbar-right">
|
||||||
<li><a href="#" className="no-drag">Hide</a></li>
|
<li><a href="#">Hide</a></li>
|
||||||
<li><a href="#" onClick={this.handleClose}className="no-drag"><i className="icon ion-close-round"></i></a></li>
|
<li><a href="#" onClick={this.handleClose}><i className="icon ion-close-round"></i></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -16,9 +16,9 @@ body {
|
||||||
/* @group Electron Specific */
|
/* @group Electron Specific */
|
||||||
#navbar {
|
#navbar {
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
.no-drag {
|
a, a > i {
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
cursor: initial;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue