fix: media property visibility on search page

This commit is contained in:
Sean Yesmunt 2019-01-08 15:55:55 -05:00
parent 719cdb3334
commit d2fcd8cf1a
3 changed files with 15 additions and 1 deletions

View file

@ -63,7 +63,7 @@ class FileSelector extends React.PureComponent<Props> {
type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory'); type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory');
return ( return (
<FormRow verticallyCentered> <FormRow verticallyCentered padded>
<Button button="primary" onClick={() => this.handleButtonClick()} label={label} /> <Button button="primary" onClick={() => this.handleButtonClick()} label={label} />
<input <input
webkitdirectory="true" webkitdirectory="true"

View file

@ -62,6 +62,10 @@ class FileTile extends React.PureComponent<Props> {
} = this.props; } = this.props;
const isRewardContent = claim && rewardedContentClaimIds.includes(claim.claim_id); const isRewardContent = claim && rewardedContentClaimIds.includes(claim.claim_id);
if (!isNew && !isSubscribed && !isRewardContent && !isDownloaded) {
return null;
}
return ( return (
<div className={classnames('media__properties', { card__subtitle: size === 'large' })}> <div className={classnames('media__properties', { card__subtitle: size === 'large' })}>
<FilePrice hideFree uri={uri} /> <FilePrice hideFree uri={uri} />

View file

@ -161,6 +161,16 @@
} }
} }
.media--search-result,
.media--small {
.media__properties {
padding: 0 var(--spacing-vertical-small);
border-radius: 5px;
background-color: $lbry-white;
color: $lbry-black;
}
}
// M E D I A // M E D I A
// A C T I O N S // A C T I O N S