Preliminary fix #17
This commit is contained in:
@ -19,9 +19,9 @@ class MiniPlayer extends React.Component{
|
||||
}
|
||||
|
||||
renderPlayButton(){
|
||||
var button = <a onClick={() => this.props.mopidyActions.play()}><FontAwesome name="play" /> </a>
|
||||
var button = <a className="play" onClick={() => this.props.mopidyActions.play()}><FontAwesome name="play" /> </a>
|
||||
if( this.props.play_state == 'playing' ){
|
||||
button = <a onClick={() => this.props.mopidyActions.pause()}><FontAwesome name="pause" /> </a>
|
||||
button = <a className="play" onClick={() => this.props.mopidyActions.pause()}><FontAwesome name="pause" /> </a>
|
||||
}
|
||||
return button;
|
||||
}
|
||||
@ -37,7 +37,7 @@ class MiniPlayer extends React.Component{
|
||||
|
||||
<div className="controls">
|
||||
{ this.renderPlayButton() }
|
||||
<a onClick={() => this.props.mopidyActions.next()}>
|
||||
<a className="next" onClick={() => this.props.mopidyActions.next()}>
|
||||
<FontAwesome name="step-forward" />
|
||||
</a>
|
||||
<VolumeControl />
|
||||
|
||||
@ -75,16 +75,35 @@
|
||||
padding: 10px;
|
||||
|
||||
.controls {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
height: 0px;
|
||||
|
||||
a {
|
||||
.play {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.next {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 48px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.volume-control {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
|
||||
a {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.slider-wrapper {
|
||||
bottom: 2px;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -104,7 +123,7 @@
|
||||
|
||||
.current-track {
|
||||
font-size: 12px;
|
||||
padding: 0 20px 0 70px;
|
||||
padding: 0 40px 0 70px;
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user