From 9c74cd7f64e5fe7266ce1371e508caeb133d95c4 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 4 Oct 2018 00:11:08 -0400 Subject: [PATCH 1/4] general css fixes --- .eslintrc.json | 4 +- .../component/transactionListRecent/view.jsx | 4 ++ src/renderer/component/userHistory/view.jsx | 28 ++++++----- .../component/userHistoryItem/view.jsx | 33 ++++++------- src/renderer/page/help/view.jsx | 2 +- src/renderer/scss/_gui.scss | 14 +----- src/renderer/scss/_vars.scss | 6 ++- src/renderer/scss/all.scss | 2 + src/renderer/scss/component/_button.scss | 2 - src/renderer/scss/component/_card.scss | 3 +- src/renderer/scss/component/_item-list.scss | 26 +++++++++++ src/renderer/scss/component/_search.scss | 3 -- src/renderer/scss/component/_table.scss | 46 ------------------- src/renderer/scss/component/_time.scss | 9 ++++ static/themes/dark.css | 4 +- 15 files changed, 82 insertions(+), 104 deletions(-) create mode 100644 src/renderer/scss/component/_item-list.scss create mode 100644 src/renderer/scss/component/_time.scss diff --git a/.eslintrc.json b/.eslintrc.json index bb482f3f2..19f686074 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -40,6 +40,8 @@ "react/require-default-props": 0, "react/jsx-closing-tag-location": 0, "jsx-a11y/no-noninteractive-element-to-interactive-role": 0, - "class-methods-use-this": 0 + "class-methods-use-this": 0, + "jsx-a11y/interactive-supports-focus": 0, + "jsx-a11y/click-events-have-key-events": 0 } } diff --git a/src/renderer/component/transactionListRecent/view.jsx b/src/renderer/component/transactionListRecent/view.jsx index 325bbc1cb..fefcab356 100644 --- a/src/renderer/component/transactionListRecent/view.jsx +++ b/src/renderer/component/transactionListRecent/view.jsx @@ -24,6 +24,10 @@ class TransactionListRecent extends React.PureComponent { return (
{__('Recent Transactions')}
+
+ {__('To view all of your transactions, navigate to the')}{' '} +
{fetchingTransactions && (
diff --git a/src/renderer/component/userHistory/view.jsx b/src/renderer/component/userHistory/view.jsx index ae8f4b532..55b040d74 100644 --- a/src/renderer/component/userHistory/view.jsx +++ b/src/renderer/component/userHistory/view.jsx @@ -117,21 +117,19 @@ class UserHistoryPage extends React.PureComponent { />
{!!history.length && ( - - - {history.map(item => ( - { - this.onSelect(item.uri); - }} - /> - ))} - -
+
+ {history.map(item => ( + { + this.onSelect(item.uri); + }} + /> + ))} +
)} {pageCount > 1 && ( diff --git a/src/renderer/component/userHistoryItem/view.jsx b/src/renderer/component/userHistoryItem/view.jsx index de35a919b..b5ae79808 100644 --- a/src/renderer/component/userHistoryItem/view.jsx +++ b/src/renderer/component/userHistoryItem/view.jsx @@ -36,27 +36,24 @@ class UserHistoryItem extends React.PureComponent { } return ( - - - - - {moment(lastViewed).from(moment())} - {title} - -