updates for PR comments
This commit is contained in:
parent
94773a724e
commit
0d69772bdb
2 changed files with 9 additions and 3 deletions
|
@ -135,7 +135,9 @@ class FileTile extends React.PureComponent<Props> {
|
||||||
<CardMedia title={title || name} thumbnail={thumbnail} />
|
<CardMedia title={title || name} thumbnail={thumbnail} />
|
||||||
<div className="file-tile__info">
|
<div className="file-tile__info">
|
||||||
<div className="file-tile__title">
|
<div className="file-tile__title">
|
||||||
{(title || name) && <TruncatedText text={title || name} lines={size === 'small' ? 2 : 3} />}
|
{(title || name) && (
|
||||||
|
<TruncatedText text={title || name} lines={size === 'small' ? 2 : 3} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="card__subtitle">
|
<div className="card__subtitle">
|
||||||
<UriIndicator uri={uri} link />
|
<UriIndicator uri={uri} link />
|
||||||
|
@ -159,10 +161,12 @@ class FileTile extends React.PureComponent<Props> {
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
// avoid navigating to /show from clicking on the section
|
// avoid navigating to /show from clicking on the section
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
// strip prefix from the Uri and use that as navigation parameter
|
// strip prefix from the Uri and use that as navigation parameter
|
||||||
const nameFromUri = uri.replace(/lbry:\/\//g, '').replace(/-/g, ' ');
|
const { claimName } = parseURI(uri);
|
||||||
|
|
||||||
clearPublish(); // to remove any existing publish data
|
clearPublish(); // to remove any existing publish data
|
||||||
updatePublishForm({ name: nameFromUri }); // to populate the name
|
updatePublishForm({ name: claimName }); // to populate the name
|
||||||
navigate('/publish');
|
navigate('/publish');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -21,11 +21,13 @@
|
||||||
margin-top: $spacing-vertical * 1/3;
|
margin-top: $spacing-vertical * 1/3;
|
||||||
height: 3em;
|
height: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder__channel {
|
.placeholder__channel {
|
||||||
margin-top: $spacing-vertical * 1/3;
|
margin-top: $spacing-vertical * 1/3;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder__date {
|
.placeholder__date {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
margin-top: $spacing-vertical * 1/3;
|
margin-top: $spacing-vertical * 1/3;
|
||||||
|
|
Loading…
Reference in a new issue