From 2dd6529d82fad8574ca9bdddccdab9d7b60489f3 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Fri, 25 May 2018 22:38:06 -0400 Subject: [PATCH 1/3] -Added description and changed css so the search screen is more presentable to the user. --- src/renderer/component/fileTile/view.jsx | 10 +++++++--- src/renderer/scss/_vars.scss | 4 ++-- src/renderer/scss/component/_card.scss | 2 ++ src/renderer/scss/component/_file-list.scss | 6 ++++-- src/renderer/scss/component/_search.scss | 3 ++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/renderer/component/fileTile/view.jsx b/src/renderer/component/fileTile/view.jsx index 626dc39fc..8674c15a1 100644 --- a/src/renderer/component/fileTile/view.jsx +++ b/src/renderer/component/fileTile/view.jsx @@ -68,6 +68,7 @@ class FileTile extends React.PureComponent { const uri = normalizeURI(this.props.uri); const isClaimed = !!claim; + const description = isClaimed && metadata && metadata.description ? metadata.description : ''; const title = isClaimed && metadata && metadata.title ? metadata.title : parseURI(uri).contentName; const thumbnail = metadata && metadata.thumbnail ? metadata.thumbnail : null; @@ -97,16 +98,19 @@ class FileTile extends React.PureComponent { {isResolvingUri &&
{__('Loading...')}
} {!isResolvingUri && ( +
+ +
{title || name}
+
+ {description} +
{showUri ? uri : channel || __('Anonymous')} {isRewardContent && } {showLocal && isDownloaded && } -
- -
{!name && ( diff --git a/src/renderer/scss/_vars.scss b/src/renderer/scss/_vars.scss index a30c51765..2b5fbbeec 100644 --- a/src/renderer/scss/_vars.scss +++ b/src/renderer/scss/_vars.scss @@ -150,8 +150,8 @@ $large-breakpoint: 1760px; --success-msg-bg: var(--color-green-light); /* File Tile Card */ - --file-tile--media-height: 60px; - --file-tile--media-width: 94px; // 60 * (1 + 9/16) + --file-tile--media-height: 150px; + --file-tile--media-width: 200px; // 60 * (1 + 9/16) /* Modal */ --modal-width: 440px; diff --git a/src/renderer/scss/component/_card.scss b/src/renderer/scss/component/_card.scss index e9f38fbd1..93fb135ec 100644 --- a/src/renderer/scss/component/_card.scss +++ b/src/renderer/scss/component/_card.scss @@ -103,6 +103,7 @@ .card__title--file { font-family: 'metropolis-bold'; font-size: 28px; + margin-bottom: 0; line-height: 36px; padding-top: 20px; } @@ -119,6 +120,7 @@ } .card__subtitle { + margin: 0; font-size: 14px; font-family: 'metropolis-medium'; color: var(--card-text-color); diff --git a/src/renderer/scss/component/_file-list.scss b/src/renderer/scss/component/_file-list.scss index 30b2de303..719947f35 100644 --- a/src/renderer/scss/component/_file-list.scss +++ b/src/renderer/scss/component/_file-list.scss @@ -13,7 +13,7 @@ .file-list__header { margin-top: $spacing-vertical * 4/3; - font-size: 18px; + font-size: 40px; .tooltip { margin-left: 5px; @@ -23,7 +23,6 @@ .file-tile { display: flex; margin-top: $spacing-vertical; - max-width: 260px; .card__media { height: var(--file-tile--media-height); @@ -40,7 +39,10 @@ } .file-tile__info { + display: flex; + flex-direction: column; margin-left: $spacing-vertical * 1/3; + max-width: 500px; } .file-tile__uri { diff --git a/src/renderer/scss/component/_search.scss b/src/renderer/scss/component/_search.scss index ea3234369..23b484a21 100644 --- a/src/renderer/scss/component/_search.scss +++ b/src/renderer/scss/component/_search.scss @@ -98,9 +98,10 @@ .search__results { display: flex; padding-bottom: $spacing-vertical; + flex-flow: wrap column; .search-result__column { - flex: 0 0 270px; + flex: 0 0 500px; .card__media { background-color: var(--color-search-placeholder); } -- 2.45.2 From 8be48a84cf903e5e58d4e605e9b757bb4fe50fa3 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Tue, 5 Jun 2018 22:14:15 -0400 Subject: [PATCH 2/3] Made changes recommended on PR review. --- .idea/inspectionProfiles/Project_Default.xml | 6 - .idea/lbry-app.iml | 12 - .idea/misc.xml | 6 - .idea/modules.xml | 8 - .idea/vcs.xml | 6 - .idea/workspace.xml | 547 ------------------- package.json | 2 +- src/renderer/component/fileTile/view.jsx | 12 +- src/renderer/scss/_vars.scss | 4 +- src/renderer/scss/component/_card.scss | 2 + 10 files changed, 11 insertions(+), 594 deletions(-) delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/lbry-app.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index c6cc8c819..000000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/lbry-app.iml b/.idea/lbry-app.iml deleted file mode 100644 index 24643cc37..000000000 --- a/.idea/lbry-app.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 3668dc8ca..000000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index b37b46a86..000000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f4..000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index a51b0ec12..000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,547 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TYPE_FEATURED_DOWNLOAD - TYPE_FEATURED_DOW - doOpen - doNotify - settings - - - - - - - - - - - - - true - - false - true - true - - - true - DEFINITION_ORDER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -