Icon change to avoid confusion.

This commit is contained in:
Sean Li 2015-02-26 11:44:49 -08:00
parent 068bb3e53d
commit 8e0a9deaa4
16 changed files with 20 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1023 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1018 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
images/button-view.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
images/button-view@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 953 B

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 B

After

Width:  |  Height:  |  Size: 749 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -113,12 +113,12 @@ var ContainerDetailsSubheader = React.createClass({
});
}
},
handleItemMouseEnterRun: function () {
var $action = $(this.getDOMNode()).find('.action .run');
handleItemMouseEnterView: function () {
var $action = $(this.getDOMNode()).find('.action .view');
$action.css("visibility", "visible");
},
handleItemMouseLeaveRun: function () {
var $action = $(this.getDOMNode()).find('.action .run');
handleItemMouseLeaveView: function () {
var $action = $(this.getDOMNode()).find('.action .view');
$action.css("visibility", "hidden");
},
handleItemMouseEnterRestart: function () {
@ -168,9 +168,9 @@ var ContainerDetailsSubheader = React.createClass({
return (
<div className="details-subheader">
<div className="details-header-actions">
<div className={runActionClass} onMouseEnter={this.handleItemMouseEnterRun} onMouseLeave={this.handleItemMouseLeaveRun}>
<span className="action-icon" onClick={this.handleRun}><RetinaImage src="button-run.png"/></span>
<span className="btn-label run">Run</span>
<div className={runActionClass} onMouseEnter={this.handleItemMouseEnterView} onMouseLeave={this.handleItemMouseLeaveView}>
<span className="action-icon" onClick={this.handleRun}><RetinaImage src="button-view.png"/></span>
<span className="btn-label view">View</span>
</div>
<div className={restartActionClass} onMouseEnter={this.handleItemMouseEnterRestart} onMouseLeave={this.handleItemMouseLeaveRestart}>
<span className="action-icon" onClick={this.handleRestart}><RetinaImage src="button-restart.png"/></span>

View File

@ -24,28 +24,32 @@
margin-top: -12px;
.action {
display: inline-block;
position: relative;
top: 10px;
&.disabled {
opacity: 0.3;
}
.action-icon {
color: @gray-normal;
font-size: 30px;
margin-right: 20px;
margin-right: 15px;
}
.btn-label {
position: relative;
top: 0px;
display: block;
position: absolute;
color: @brand-action;
font-size: 10px;
&.run {
left: 8px;
width: 200px;
top: 30px;
&.view {
left: 6px;
//left: 0px;
}
&.restart {
left: 1px;
left: 2px;
//left: -18px;
}
&.terminal {
left: -2px;
left: -1px;
//left: -30px;
}
visibility: hidden;
}