зеркало из https://github.com/docker/kitematic.git
Set fixed size so retina image won't expand.
This commit is contained in:
Родитель
75550a0bbe
Коммит
d5e37197f9
|
@ -224,14 +224,14 @@ var ContainerDetailsSubheader = React.createClass({
|
|||
if (this.disableStop()) {
|
||||
startStopToggle = (
|
||||
<div className={startActionClass} onMouseEnter={this.handleItemMouseEnterStart} onMouseLeave={this.handleItemMouseLeaveStart}>
|
||||
<div className="action-icon" onClick={this.handleStart}><RetinaImage src="button-start.png"/></div>
|
||||
<div className="action-icon" onClick={this.handleStart}><RetinaImage src="button-start.png" /></div>
|
||||
<span className="btn-label start">Start</span>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
startStopToggle = (
|
||||
<div className={stopActionClass} onMouseEnter={this.handleItemMouseEnterStop} onMouseLeave={this.handleItemMouseLeaveStop}>
|
||||
<div className="action-icon" onClick={this.handleStop}><RetinaImage src="button-stop.png"/></div>
|
||||
<div className="action-icon" onClick={this.handleStop}><RetinaImage src="button-stop.png" /></div>
|
||||
<span className="btn-label stop">Stop</span>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
.action {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
img {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
&.disabled {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче