From 422dd25949a3ac89dc7bfd6dec75ee2e07505208 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 13 Jun 2018 16:32:38 -0400 Subject: [PATCH] add thumbnail fallback for non-playable content --- src/renderer/page/file/view.jsx | 23 ++++++++++++++++++----- src/renderer/scss/component/_card.scss | 12 ++++++------ src/renderer/scss/component/_content.scss | 14 ++++++++++++++ 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/renderer/page/file/view.jsx b/src/renderer/page/file/view.jsx index d2660beb6..4f07bf8ad 100644 --- a/src/renderer/page/file/view.jsx +++ b/src/renderer/page/file/view.jsx @@ -20,6 +20,7 @@ import * as settings from 'constants/settings'; import type { Claim } from 'types/claim'; import type { Subscription } from 'types/subscription'; import FileDownloadLink from 'component/fileDownloadLink'; +import classnames from 'classnames'; type Props = { claim: Claim, @@ -149,11 +150,23 @@ class FilePage extends React.Component { ) : (
- {isPlayable ? ( -