From 79895f6c7fa4c609cbb2d02ba11b277a26518368 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Wed, 4 Oct 2017 22:13:06 -0600 Subject: [PATCH] more fixes :) --- ui/js/component/fileActions/view.jsx | 12 +++++++++++- ui/js/component/fileDetails/view.jsx | 6 ------ ui/js/component/fileDownloadLink/view.jsx | 2 ++ ui/js/component/fileTile/view.jsx | 2 +- ui/scss/component/_file-download.scss | 10 ---------- 5 files changed, 14 insertions(+), 18 deletions(-) diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index ecb218228..d6a3bf758 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -18,6 +18,7 @@ class FileActions extends React.PureComponent { icon="icon-edit" label={__("Edit")} navigate="/publish" + className="no-underline" navigateParams={{ id: claimId }} />} @@ -26,16 +27,25 @@ class FileActions extends React.PureComponent { icon="icon-gift" label={__("Support")} navigate="/show" + className="no-underline" navigateParams={{ uri, tab: "tip" }} /> + {showDelete && openModal(modals.CONFIRM_FILE_REMOVE, { uri })} />} + ); } diff --git a/ui/js/component/fileDetails/view.jsx b/ui/js/component/fileDetails/view.jsx index aaa6ab24e..5178fdace 100644 --- a/ui/js/component/fileDetails/view.jsx +++ b/ui/js/component/fileDetails/view.jsx @@ -71,12 +71,6 @@ class FileDetails extends React.PureComponent { } -

- -

); diff --git a/ui/js/component/fileDownloadLink/view.jsx b/ui/js/component/fileDownloadLink/view.jsx index 49c6c29ce..9980e8a07 100644 --- a/ui/js/component/fileDownloadLink/view.jsx +++ b/ui/js/component/fileDownloadLink/view.jsx @@ -80,6 +80,7 @@ class FileDownloadLink extends React.PureComponent { button="text" label={__("Download")} icon="icon-download" + className="no-underline" onClick={() => { purchaseUri(uri); }} @@ -92,6 +93,7 @@ class FileDownloadLink extends React.PureComponent { label={__("Open")} button="text" icon="icon-external-link-square" + className="no-underline" onClick={() => openInShell(fileInfo.download_path)} /> ); diff --git a/ui/js/component/fileTile/view.jsx b/ui/js/component/fileTile/view.jsx index a16a51435..f23f26ec9 100644 --- a/ui/js/component/fileTile/view.jsx +++ b/ui/js/component/fileTile/view.jsx @@ -133,7 +133,7 @@ class FileTile extends React.PureComponent { {description &&
- + {description}
} diff --git a/ui/scss/component/_file-download.scss b/ui/scss/component/_file-download.scss index 13ce6e1f3..485e2ea9d 100644 --- a/ui/scss/component/_file-download.scss +++ b/ui/scss/component/_file-download.scss @@ -20,13 +20,3 @@ top: 0px; left: 0px; } - -/* - -.file-actions -{ - line-height: var(--button-height); - min-height: var(--button-height); -} - - */ \ No newline at end of file