From 736248a70bdae4367150d4623c6da637f67d2ab1 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 30 Jan 2019 02:46:45 -0500 Subject: [PATCH 1/3] fix: show publish icon on my own claims --- src/renderer/component/fileCard/view.jsx | 3 ++- src/renderer/component/fileTile/view.jsx | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/renderer/component/fileCard/view.jsx b/src/renderer/component/fileCard/view.jsx index 3d980d5a7..be3bd7a41 100644 --- a/src/renderer/component/fileCard/view.jsx +++ b/src/renderer/component/fileCard/view.jsx @@ -133,7 +133,8 @@ class FileCard extends React.PureComponent { {isRewardContent && } {isSubscribed && } - {fileInfo && } + {claimIsMine && } + {!claimIsMine && fileInfo && } {isNew && {__('NEW')}} diff --git a/src/renderer/component/fileTile/view.jsx b/src/renderer/component/fileTile/view.jsx index 773f7b609..0f5245e80 100644 --- a/src/renderer/component/fileTile/view.jsx +++ b/src/renderer/component/fileTile/view.jsx @@ -59,6 +59,7 @@ class FileTile extends React.PureComponent { rewardedContentClaimIds, size, isNew, + claimIsMine, } = this.props; const isRewardContent = claim && rewardedContentClaimIds.includes(claim.claim_id); @@ -67,12 +68,15 @@ class FileTile extends React.PureComponent { } return ( + // TODO: turn this into it's own component and share it with FileCard + // The only issue is icon placement on the search page
{isNew && {__('NEW')}} {isSubscribed && } {isRewardContent && } - {isDownloaded && } + {!claimIsMine && isDownloaded && } + {claimIsMine && }
); } -- 2.45.2 From c37f1f1aed95176b7af376662574ea90601db906 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 30 Jan 2019 02:48:14 -0500 Subject: [PATCH 2/3] fix: icon placement on search page --- src/renderer/scss/component/_media.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/scss/component/_media.scss b/src/renderer/scss/component/_media.scss index 4c2520aa6..2ed3ca236 100644 --- a/src/renderer/scss/component/_media.scss +++ b/src/renderer/scss/component/_media.scss @@ -96,7 +96,7 @@ } .media__properties { - bottom: -5rem; + bottom: -4.5rem; left: -20rem; position: absolute; } -- 2.45.2 From fff03d08358db6ce77de0db45928d6f550025d6a Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 31 Jan 2019 11:54:54 -0500 Subject: [PATCH 3/3] chore: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1b8df229..95c1840aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed - Less intrusive first run flow ([#2210](https://github.com/lbryio/lbry-desktop/pull/2210)) +- Add icon for your own publishes on cards/tiles ([#2249](https://github.com/lbryio/lbry-desktop/pull/2249)) ### Fixed -- 2.45.2