diff --git a/ui/component/claimPreviewTile/view.jsx b/ui/component/claimPreviewTile/view.jsx
index e4243d89e..fefb1f39d 100644
--- a/ui/component/claimPreviewTile/view.jsx
+++ b/ui/component/claimPreviewTile/view.jsx
@@ -11,6 +11,7 @@ import SubscribeButton from 'component/subscribeButton';
import useGetThumbnail from 'effects/use-get-thumbnail';
import { formatLbryUrlForWeb } from 'util/url';
import { parseURI } from 'lbry-redux';
+import VideoDuration from 'component/videoDuration';
type Props = {
uri: string,
@@ -147,7 +148,9 @@ function ClaimPreviewTile(props: Props) {
})}
>
-
+
+
+
diff --git a/ui/component/fileThumbnail/view.jsx b/ui/component/fileThumbnail/view.jsx
index 5c720472f..098254679 100644
--- a/ui/component/fileThumbnail/view.jsx
+++ b/ui/component/fileThumbnail/view.jsx
@@ -1,17 +1,19 @@
// @flow
+import type { Node } from 'react';
import React from 'react';
// import FreezeframeWrapper from './FreezeframeWrapper';
import Placeholder from './placeholder.png';
type Props = {
thumbnail: ?string, // externally sourced image
+ children?: Node,
};
const className = 'media__thumb';
class CardMedia extends React.PureComponent {
render() {
- const { thumbnail } = this.props;
+ const { thumbnail, children } = this.props;
// Disabling temporarily to see if people complain
// if (thumbnail && thumbnail.endsWith('gif')) {
@@ -32,7 +34,11 @@ class CardMedia extends React.PureComponent {
url = thumbnail || Placeholder;
// @endif
- return ;
+ return (
+
+ {children}
+
+ );
}
}
diff --git a/ui/scss/component/_claim-list.scss b/ui/scss/component/_claim-list.scss
index ef74b6355..a76caa8f9 100644
--- a/ui/scss/component/_claim-list.scss
+++ b/ui/scss/component/_claim-list.scss
@@ -369,3 +369,15 @@
height: 2.1rem;
font-size: var(--font-body);
}
+
+.claim-tile__video-length {
+ position: absolute;
+ bottom: var(--spacing-small);
+ right: var(--spacing-small);
+ font-size: var(--font-small);
+ padding: 0.1rem;
+ border-radius: var(--border-radius);
+ font-weight: bold;
+ background-color: black;
+ color: white;
+}
diff --git a/ui/scss/component/_media.scss b/ui/scss/component/_media.scss
index 0e2ee9772..c66c7359a 100644
--- a/ui/scss/component/_media.scss
+++ b/ui/scss/component/_media.scss
@@ -3,6 +3,7 @@
.media__thumb {
@include thumbnail;
+ position: relative;
border-radius: var(--card-radius);
object-fit: cover;
background-color: var(--color-placeholder-background);