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} />
|
<DownloadLink streamName={this.props.name} />
|
||||||
</div>
|
</div>
|
||||||
<p style={featuredContentItemDescriptionStyle}>{metadata.description.slice(0, this._maxDescriptionLength) +
|
<p style={featuredContentItemDescriptionStyle}><TruncatedText>{metadata.description}</TruncatedText></p>
|
||||||
(metadata.description.length > this._maxDescriptionLength ? ' ...' : '')}</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>);
|
</div>);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue