Multiple line description for dapps and Masonry like layout (#2905) (#3058)

This commit is contained in:
Nicolas Gotchac
2016-11-01 17:47:02 +01:00
committed by Jaco Greeff
parent 9e7313afc8
commit 6fc89f69c1
3 changed files with 17 additions and 20 deletions

View File

@@ -16,9 +16,14 @@
*/
.byline {
color: #aaa;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
position: relative;
line-height: 1.2em;
max-height: 2.4em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.title {

View File

@@ -32,15 +32,17 @@ export default class Title extends Component {
}
render () {
const { className } = this.props;
const { className, title, byline } = this.props;
return (
<div className={ className }>
<h3 className={ styles.title }>
{ this.props.title }
{ title }
</h3>
<div className={ styles.byline }>
<span title={ this.props.byline }>{ this.props.byline }</span>
<span title={ byline }>
{ byline }
</span>
</div>
</div>
);