Icon change to avoid confusion.
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1023 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1018 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 953 B After Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 749 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|