From 4f0c6030e125bf4dce40f5bd9d0356698e0a75bb Mon Sep 17 00:00:00 2001 From: saltrafael Date: Mon, 2 Aug 2021 12:03:55 -0300 Subject: [PATCH] Add back file download link --- ui/component/claimPreview/view.jsx | 20 +++++++++----------- ui/component/claimPreviewTile/view.jsx | 21 +++++++++------------ ui/scss/component/_claim-list.scss | 6 ++++-- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx index 0f1bd76ce..1ffb959f2 100644 --- a/ui/component/claimPreview/view.jsx +++ b/ui/component/claimPreview/view.jsx @@ -362,23 +362,21 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { {!pending ? ( - {/* @if TARGET='app' */} - {claim && !isCollection && ( -
+
+ {isPlayable && ( + + )} + {/* @if TARGET='app' */} + {claim && !isCollection && ( -
- )} - {/* @endif */} + )} + {/* @endif */} +
{!isLivestream && (
)} - {isPlayable && ( -
- -
- )}
) : ( diff --git a/ui/component/claimPreviewTile/view.jsx b/ui/component/claimPreviewTile/view.jsx index d772241e8..72d279981 100644 --- a/ui/component/claimPreviewTile/view.jsx +++ b/ui/component/claimPreviewTile/view.jsx @@ -208,19 +208,16 @@ function ClaimPreviewTile(props: Props) { {!isChannel && ( - {/* @if TARGET='app' */} - {isStream && ( -
- -
- )} - {/* @endif */} - - {isPlayable && ( -
+
+ {isPlayable && ( -
- )} + )} + {/* @if TARGET='app' */} + {isStream && ( + + )} + {/* @endif */} +
diff --git a/ui/scss/component/_claim-list.scss b/ui/scss/component/_claim-list.scss index 3c98b821e..52e1c2b58 100644 --- a/ui/scss/component/_claim-list.scss +++ b/ui/scss/component/_claim-list.scss @@ -669,12 +669,13 @@ .claim-preview__hover-actions { display: none; - position: absolute; + position: relative; + float: right; top: var(--spacing-xxs); right: var(--spacing-xxs); & > * { - color: var(--color-black); + color: var(--color-text); background-color: var(--color-black); border-radius: var(--border-radius); padding: var(--spacing-xxs); @@ -685,6 +686,7 @@ } .button--file-action { + display: block; margin: 0 0; padding: var(--spacing-xxs) var(--spacing-xxs); height: unset;