Centre youtube artwork
This commit is contained in:
parent
1965a8787d
commit
f605e72699
3 changed files with 6 additions and 2 deletions
|
@ -33,7 +33,7 @@ var RecentItem = React.createClass({
|
|||
return (
|
||||
<div className="col-sm-4 col-xs-6">
|
||||
<Link to="share" params={this.props.item}>
|
||||
<div className="artwork" style={{backgroundImage: "url("+this.props.item.artwork.small+")"}}></div>
|
||||
<div className={this.props.item.service == "youtube" ? "artwork-youtube artwork" : "artwork"} style={{backgroundImage: "url("+this.props.item.artwork.small+")"}}></div>
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -44,7 +44,7 @@ var MusicItem = React.createClass({
|
|||
<div className={"service" + (this.props.inc == 0 ? " source-service" : "")}>
|
||||
<div className="matching-from hidden-xs">{this.props.inc == 0 ? "Found matches using this link": ""}</div>
|
||||
<a href={this.props.item.streamUrl || this.props.item.purchaseUrl}>
|
||||
<div className="artwork" style={{backgroundImage: "url("+this.props.item.artwork.small+")"}}>
|
||||
<div className={this.props.item.service == "youtube" ? "artwork-youtube artwork" : "artwork"} style={{backgroundImage: "url("+this.props.item.artwork.small+")"}}>
|
||||
</div>
|
||||
<div className={this.props.item.service == "youtube" && this.props.inc > 0 ? "youtube" : ""}>
|
||||
{this.props.item.service == "youtube" && this.props.inc > 0 ? this.props.item.name : ""}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue