diff --git a/js/page/discover.js b/js/page/discover.js index 91db97076..38b75717f 100644 --- a/js/page/discover.js +++ b/js/page/discover.js @@ -55,6 +55,9 @@ var height: (24 * 7) + 'px', overflowY: 'hidden' }, + searchRowCompactStyle = { + height: '180px', + }, searchRowImgStyle = { maxWidth: '100%', maxHeight: (24 * 7) + 'px', @@ -65,6 +68,10 @@ var searchRowTitleStyle = { fontWeight: 'bold' }, + searchRowTitleCompactStyle = { + fontSize: '1.25em', + lineHeight: '1.15', + }, searchRowCostStyle = { float: 'right', }, @@ -94,9 +101,17 @@ var SearchResultRow = React.createClass({ }, render: function() { var obscureNsfw = !lbry.getClientSetting('showNsfw') && this.props.nsfw; + if (!this.props.compact) { + var style = searchRowStyle; + var titleStyle = searchRowTitleStyle; + } else { + var style = Object.assign({}, searchRowStyle, searchRowCompactStyle); + var titleStyle = Object.assign({}, searchRowTitleStyle, searchRowTitleCompactStyle); + } + return ( -
-
+
+
{'Photo
@@ -105,12 +120,22 @@ var SearchResultRow = React.createClass({ -

{this.props.title}

+

+ + + {this.props.title} + + +

{this.props.mediaType == 'video' ? : null}
-

{this.props.description}

+

+ + {this.props.description} + +

{ @@ -178,7 +203,7 @@ var FeaturedContentItem = React.createClass({ return (
+ cost={this.state.amount} nsfw={this.state.metadata.nsfw} available={this.state.available} compact />
); } }); diff --git a/scss/_canvas.scss b/scss/_canvas.scss index b587c76aa..fd24a2236 100644 --- a/scss/_canvas.scss +++ b/scss/_canvas.scss @@ -206,6 +206,9 @@ $header-icon-size: 1.5em; box-shadow: $default-box-shadow; border-radius: 2px; } +.card-compact { + padding: 22px; +} .card-obscured { position: relative;