more fixes :)

This commit is contained in:
btzr-io 2017-10-04 22:13:06 -06:00
parent 6cee8d7664
commit 79895f6c7f
5 changed files with 14 additions and 18 deletions

View file

@ -18,6 +18,7 @@ class FileActions extends React.PureComponent {
icon="icon-edit" icon="icon-edit"
label={__("Edit")} label={__("Edit")}
navigate="/publish" navigate="/publish"
className="no-underline"
navigateParams={{ id: claimId }} navigateParams={{ id: claimId }}
/>} />}
<FileDownloadLink uri={uri} /> <FileDownloadLink uri={uri} />
@ -26,16 +27,25 @@ class FileActions extends React.PureComponent {
icon="icon-gift" icon="icon-gift"
label={__("Support")} label={__("Support")}
navigate="/show" navigate="/show"
className="no-underline"
navigateParams={{ uri, tab: "tip" }} navigateParams={{ uri, tab: "tip" }}
/> />
<Link
button="text"
icon="icon-flag"
href={`https://lbry.io/dmca?claim_id=${claimId}`}
className="card__action--right no-underline"
label={__("report")}
/>
{showDelete && {showDelete &&
<Link <Link
button="text" button="text"
icon="icon-trash" icon="icon-trash"
label={__("Remove")} label={__("Remove")}
className="card__action--right" className="card__action--right no-underline"
onClick={() => openModal(modals.CONFIRM_FILE_REMOVE, { uri })} onClick={() => openModal(modals.CONFIRM_FILE_REMOVE, { uri })}
/>} />}
</section> </section>
); );
} }

View file

@ -71,12 +71,6 @@ class FileDetails extends React.PureComponent {
</tr>} </tr>}
</tbody> </tbody>
</table> </table>
<p>
<Link
href={`https://lbry.io/dmca?claim_id=${claim.claim_id}`}
label={__("report")}
/>
</p>
</div> </div>
</div> </div>
); );

View file

@ -80,6 +80,7 @@ class FileDownloadLink extends React.PureComponent {
button="text" button="text"
label={__("Download")} label={__("Download")}
icon="icon-download" icon="icon-download"
className="no-underline"
onClick={() => { onClick={() => {
purchaseUri(uri); purchaseUri(uri);
}} }}
@ -92,6 +93,7 @@ class FileDownloadLink extends React.PureComponent {
label={__("Open")} label={__("Open")}
button="text" button="text"
icon="icon-external-link-square" icon="icon-external-link-square"
className="no-underline"
onClick={() => openInShell(fileInfo.download_path)} onClick={() => openInShell(fileInfo.download_path)}
/> />
); );

View file

@ -133,7 +133,7 @@ class FileTile extends React.PureComponent {
</div> </div>
{description && {description &&
<div className="card__content card__subtext"> <div className="card__content card__subtext">
<TruncatedText lines={!showActions ? 4 : 2}> <TruncatedText lines={!showActions ? 3 : 2}>
{description} {description}
</TruncatedText> </TruncatedText>
</div>} </div>}

View file

@ -20,13 +20,3 @@
top: 0px; top: 0px;
left: 0px; left: 0px;
} }
/*
.file-actions
{
line-height: var(--button-height);
min-height: var(--button-height);
}
*/