dirty, unacceptable image rendering

This commit is contained in:
Jeremy Kauffman 2019-12-03 18:11:47 -05:00 committed by Sean Yesmunt
parent 8f76224ce4
commit 51ec4aca6f
2 changed files with 16 additions and 0 deletions

View file

@ -13,6 +13,7 @@ import {
selectChannelIsBlocked, selectChannelIsBlocked,
doClearPublish, doClearPublish,
doPrepareEdit, doPrepareEdit,
makeSelectMediaTypeForUri,
} from 'lbry-redux'; } from 'lbry-redux';
import { selectBlackListedOutpoints, selectFilteredOutpoints } from 'lbryinc'; import { selectBlackListedOutpoints, selectFilteredOutpoints } from 'lbryinc';
import { selectShowMatureContent } from 'redux/selectors/settings'; import { selectShowMatureContent } from 'redux/selectors/settings';
@ -30,6 +31,7 @@ const select = (state, props) => ({
isResolvingUri: props.uri && makeSelectIsUriResolving(props.uri)(state), isResolvingUri: props.uri && makeSelectIsUriResolving(props.uri)(state),
thumbnail: props.uri && makeSelectThumbnailForUri(props.uri)(state), thumbnail: props.uri && makeSelectThumbnailForUri(props.uri)(state),
title: props.uri && makeSelectTitleForUri(props.uri)(state), title: props.uri && makeSelectTitleForUri(props.uri)(state),
mediaType: makeSelectMediaTypeForUri(props.uri)(state),
nsfw: props.uri && makeSelectClaimIsNsfw(props.uri)(state), nsfw: props.uri && makeSelectClaimIsNsfw(props.uri)(state),
blackListedOutpoints: selectBlackListedOutpoints(state), blackListedOutpoints: selectBlackListedOutpoints(state),
filteredOutpoints: selectFilteredOutpoints(state), filteredOutpoints: selectFilteredOutpoints(state),

View file

@ -17,6 +17,7 @@ import SubscribeButton from 'component/subscribeButton';
import ChannelThumbnail from 'component/channelThumbnail'; import ChannelThumbnail from 'component/channelThumbnail';
import BlockButton from 'component/blockButton'; import BlockButton from 'component/blockButton';
import Button from 'component/button'; import Button from 'component/button';
import { generateStreamUrl } from '../../util/lbrytv';
type Props = { type Props = {
uri: string, uri: string,
@ -29,6 +30,7 @@ type Props = {
isResolvingUri: boolean, isResolvingUri: boolean,
history: { push: string => void }, history: { push: string => void },
thumbnail: string, thumbnail: string,
mediaType: string,
title: string, title: string,
nsfw: boolean, nsfw: boolean,
placeholder: string, placeholder: string,
@ -62,6 +64,7 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
isResolvingUri, isResolvingUri,
thumbnail, thumbnail,
title, title,
mediaType,
nsfw, nsfw,
resolveUri, resolveUri,
claim, claim,
@ -195,13 +198,18 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
'claim-preview--pending': pending, 'claim-preview--pending': pending,
})} })}
> >
<<<<<<< HEAD
{isChannel && claim ? ( {isChannel && claim ? (
=======
{isChannel ? (
>>>>>>> dirty, unacceptable image rendering
<UriIndicator uri={uri} link> <UriIndicator uri={uri} link>
<ChannelThumbnail uri={uri} obscure={channelIsBlocked} /> <ChannelThumbnail uri={uri} obscure={channelIsBlocked} />
</UriIndicator> </UriIndicator>
) : ( ) : (
<FileThumbnail thumbnail={thumbnail} /> <FileThumbnail thumbnail={thumbnail} />
)} )}
<<<<<<< HEAD
<div className="claim-preview__text"> <div className="claim-preview__text">
<div className="claim-preview-metadata"> <div className="claim-preview-metadata">
<div className="claim-preview-info"> <div className="claim-preview-info">
@ -209,6 +217,12 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
{claim ? <TruncatedText text={title || claim.name} lines={2} /> : <span>{__('Nothing here')}</span>} {claim ? <TruncatedText text={title || claim.name} lines={2} /> : <span>{__('Nothing here')}</span>}
</div> </div>
{!isChannel && claim && <FileProperties uri={uri} />} {!isChannel && claim && <FileProperties uri={uri} />}
=======
<div className="claim-preview-metadata">
<div className="claim-preview-info">
<div className="claim-preview-title">
{claim ? <TruncatedText text={title || claim.name} lines={1} /> : <span>{__('Nothing here')}</span>}
>>>>>>> dirty, unacceptable image rendering
</div> </div>
<div className="media__subtitle"> <div className="media__subtitle">