Make Featured Content and Search use new TruncatedText component
This commit is contained in:
parent
be31598ed9
commit
53843361b6
1 changed files with 1 additions and 2 deletions
|
@ -201,8 +201,7 @@ var FeaturedContentItem = React.createClass({
|
|||
|
||||
<DownloadLink streamName={this.props.name} />
|
||||
</div>
|
||||
<p style={featuredContentItemDescriptionStyle}>{metadata.description.slice(0, this._maxDescriptionLength) +
|
||||
(metadata.description.length > this._maxDescriptionLength ? ' ...' : '')}</p>
|
||||
<p style={featuredContentItemDescriptionStyle}><TruncatedText>{metadata.description}</TruncatedText></p>
|
||||
</div>
|
||||
</div>);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue