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) {
|
||||
ipc.send('close');
|
||||
},
|
||||
|
||||
|
||||
render: function () {
|
||||
return (
|
||||
<nav id="navbar" className="navbar navbar-default navbar-fixed-top">
|
||||
<div className="container-fluid">
|
||||
<a className="navbar-brand">Keyboard Mechanizer</a>
|
||||
<ul className="nav navbar-nav navbar-right">
|
||||
<li><a href="#" className="no-drag">Hide</a></li>
|
||||
<li><a href="#" onClick={this.handleClose}className="no-drag"><i className="icon ion-close-round"></i></a></li>
|
||||
<li><a href="#">Hide</a></li>
|
||||
<li><a href="#" onClick={this.handleClose}><i className="icon ion-close-round"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
@ -16,9 +16,9 @@ body {
|
|||
/* @group Electron Specific */
|
||||
#navbar {
|
||||
-webkit-app-region: drag;
|
||||
.no-drag {
|
||||
a, a > i {
|
||||
-webkit-app-region: no-drag;
|
||||
cursor: initial;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue