Source icon on responsive

This commit is contained in:
James Barnsley
2017-03-27 09:17:05 +13:00
parent fbc34e71a0
commit b7f3eb4c14
4 changed files with 13 additions and 4 deletions

View File

@ -87,6 +87,7 @@ export default class Track extends React.Component{
<span className="col name">
{ track.name ? track.name : <span className="grey-text">{track.uri}</span> }
</span>
{this.props.show_source_icon ? <FontAwesome name={helpers.sourceIcon(track.uri)} className="source" fixedWidth /> : null}
<span className="col artists">
{ track.artists ? <ArtistSentence artists={track.artists} /> : '-' }
</span>
@ -110,6 +111,7 @@ export default class Track extends React.Component{
<span className="col name">
{ track.name ? track.name : <span className="grey-text">{track.uri}</span> }
</span>
{this.props.show_source_icon ? <FontAwesome name={helpers.sourceIcon(track.uri)} className="source" fixedWidth /> : null}
<span className="col artists">
{ track.artists ? <ArtistSentence artists={track.artists} /> : '-' }
</span>
@ -136,7 +138,6 @@ export default class Track extends React.Component{
{ this.props.track.selected ? <FontAwesome name="check" className="select-state" fixedWidth /> : null }
{ this.props.track.playing ? <FontAwesome name="play" className="play-state" fixedWidth /> : null }
{ track_columns }
{ this.props.show_source_icon ? <FontAwesome name={helpers.sourceIcon(track.uri)} className="source" fixedWidth /> : null }
</div>
);
}