Current track panel

This commit is contained in:
James Barnsley
2017-06-16 09:44:19 +12:00
parent 911f07a806
commit 1c1de75a6f
2 changed files with 32 additions and 4 deletions

View File

@ -59,15 +59,15 @@ class PlaybackControls extends React.Component{
return (
<div className="playback-controls">
<div className="current-track">
<a className="current-track">
<Thumbnail size="small" images={images} />
<div className="title">
{ this.props.current_track ? this.props.current_track.name : <span>-</span> }
</div>
<div className="artist">
{ this.props.current_track ? <ArtistSentence artists={ this.props.current_track.artists } /> : <ArtistSentence /> }
{ this.props.current_track ? <ArtistSentence nolinks artists={ this.props.current_track.artists } /> : <ArtistSentence /> }
</div>
</div>
</a>
<section className="playback">
<a className="control" onClick={() => this.props.mopidyActions.previous()}>