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 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 && }
); } 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; }