mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Fix search results html
This commit is contained in:
parent
84b86ff8e4
commit
786f57e787
1 changed files with 26 additions and 68 deletions
|
@ -83,29 +83,31 @@ class FileTileStream extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className={ 'card card--small card--link ' + (obscureNsfw ? 'card--obscured ' : '') } onMouseEnter={this.handleMouseOver.bind(this)} onMouseLeave={this.handleMouseOut.bind(this)}>
|
<section className={ 'file-tile card ' + (obscureNsfw ? 'card--obscured ' : '') } onMouseEnter={this.handleMouseOver.bind(this)} onMouseLeave={this.handleMouseOut.bind(this)}>
|
||||||
<div className="card__inner">
|
<Link onClick={() => navigate('/show', { uri })} className="card__link" className="card__link">
|
||||||
<Link onClick={() => navigate('/show', { uri })} className="card__link">
|
<div className={"card__inner file-tile__row"}>
|
||||||
<div className="card__title-identity">
|
<div className="card__media"
|
||||||
<h5 title={title}><TruncatedText lines={1}>{title}</TruncatedText></h5>
|
style={{ backgroundImage: "url('" + (metadata && metadata.thumbnail ? metadata.thumbnail : lbry.imagePath('default-thumb.svg')) + "')" }}>
|
||||||
<div className="card__subtitle">
|
|
||||||
{ !this.props.hidePrice ? <span style={{float: "right"}}><FilePrice uri={uri} /></span> : null}
|
|
||||||
<UriIndicator uri={uri} />
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="file-tile__content">
|
||||||
|
<div className="card__title-primary">
|
||||||
|
{ !this.props.hidePrice
|
||||||
|
? <FilePrice uri={this.props.uri} />
|
||||||
|
: null}
|
||||||
|
<div className="meta">{uri}</div>
|
||||||
|
<h3><TruncatedText lines={1}>{title}</TruncatedText></h3>
|
||||||
</div>
|
</div>
|
||||||
{ metadata && metadata.thumbnail ?
|
<div className="card__content card__subtext">
|
||||||
<div className="card__media" style={{ backgroundImage: "url('" + metadata.thumbnail + "')" }}></div> :
|
<TruncatedText lines={3}>
|
||||||
<div className="card__media" style={{ backgroundImage: "url('" + lbry.imagePath('default-thumb.svg') + "')" }}></div>
|
|
||||||
}
|
|
||||||
<div className="card__content card__subtext card__subtext--two-lines">
|
|
||||||
<TruncatedText lines={2}>
|
|
||||||
{isConfirmed
|
{isConfirmed
|
||||||
? metadata.description
|
? metadata.description
|
||||||
: <span className="empty">This file is pending confirmation.</span>}
|
: <span className="empty">This file is pending confirmation.</span>}
|
||||||
</TruncatedText>
|
</TruncatedText>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
{this.state.showNsfwHelp && this.state.hovered
|
{this.state.showNsfwHelp
|
||||||
? <div className='card-overlay'>
|
? <div className='card-overlay'>
|
||||||
<p>
|
<p>
|
||||||
This content is Not Safe For Work.
|
This content is Not Safe For Work.
|
||||||
|
@ -113,51 +115,7 @@ class FileTileStream extends React.Component {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
: null}
|
: null}
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
// <section className={ 'file-tile card ' + (obscureNsfw ? 'card--obscured ' : '') } onMouseEnter={this.handleMouseOver.bind(this)} onMouseLeave={this.handleMouseOut.bind(this)}>
|
|
||||||
// <div className={"row-fluid card__inner file-tile__row"}>
|
|
||||||
// <div className="span3 file-tile__thumbnail-container">
|
|
||||||
// <Link onClick={() => navigate('/show', { uri })}>
|
|
||||||
// {metadata && metadata.thumbnail ?
|
|
||||||
// <Thumbnail key={this.props.uri} className="file-tile__thumbnail" src={metadata.thumbnail} alt={'Photo for ' + this.props.uri} />
|
|
||||||
// :
|
|
||||||
// <Thumbnail className="file-tile__thumbnail" alt={'Photo for ' + this.props.uri} />
|
|
||||||
// }
|
|
||||||
// </Link>
|
|
||||||
// </div>
|
|
||||||
// <div className="span9">
|
|
||||||
// <div className="card__title-primary">
|
|
||||||
// { !this.props.hidePrice
|
|
||||||
// ? <FilePrice uri={this.props.uri} />
|
|
||||||
// : null}
|
|
||||||
// <div className="meta"><Link onClick={() => navigate('/show', { uri })}>{uri}</Link></div>
|
|
||||||
// <h3>
|
|
||||||
// <Link onClick={() => navigate('/show', { uri })} title={title}>
|
|
||||||
// <TruncatedText lines={1}>
|
|
||||||
// {title}
|
|
||||||
// </TruncatedText>
|
|
||||||
// </Link>
|
|
||||||
// </h3>
|
|
||||||
// </div>
|
|
||||||
// <div className="card__actions">
|
|
||||||
// </div>
|
|
||||||
// <div className="card__content">
|
|
||||||
// <p className="file-tile__description">
|
|
||||||
// <TruncatedText lines={2}>{description}</TruncatedText>
|
|
||||||
// </p>
|
|
||||||
// </div>
|
|
||||||
// </div>
|
|
||||||
// </div>
|
|
||||||
// {this.state.showNsfwHelp
|
|
||||||
// ? <div className='card-overlay'>
|
|
||||||
// <p>
|
|
||||||
// This content is Not Safe For Work.
|
|
||||||
// To view adult content, please change your <Link className="button-text" onClick={() => navigate('/settings')} label="Settings" />.
|
|
||||||
// </p>
|
|
||||||
// </div>
|
|
||||||
// : null}
|
|
||||||
// </section>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue