aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-05-20 10:11:53 +0800
committerDan Finlay <dan@danfinlay.com>2016-05-20 10:11:53 +0800
commit2a6d6fcd158d0e108b50c51a6deb5405505eeda6 (patch)
tree648f386eeaf13729de893c50281d7809f6dd25a9 /ui
parentd71ee6927f3b380c324c62f0b557cadaad54b037 (diff)
downloadtangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.tar
tangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.tar.gz
tangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.tar.bz2
tangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.tar.lz
tangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.tar.xz
tangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.tar.zst
tangerine-wallet-browser-2a6d6fcd158d0e108b50c51a6deb5405505eeda6.zip
Improve tx list style
Tx list no longer enlarges on hover, and failed transactions no longer have hover styles nor direct to an explorer page.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/transaction-list.js27
-rw-r--r--ui/app/css/lib.css5
2 files changed, 6 insertions, 26 deletions
diff --git a/ui/app/components/transaction-list.js b/ui/app/components/transaction-list.js
index 6cc35243f..f85aab70f 100644
--- a/ui/app/components/transaction-list.js
+++ b/ui/app/components/transaction-list.js
@@ -59,38 +59,15 @@ module.exports = function(transactions, network) {
function renderTransaction(transaction, i){
- var panelOpts = {
- key: `tx-${transaction.id + i}`,
- identiconKey: transaction.txParams.to,
- onClick: (event) => {
- if (!transaction.hash) return
- var url = explorerLink(transaction.hash, parseInt(network))
- chrome.tabs.create({ url })
- },
- attributes: [
- {
- key: 'TIME',
- value: formatDate(transaction.time),
- },
- {
- key: 'TO',
- value: addressSummary(transaction.txParams.to),
- },
- {
- key: 'VALUE',
- value: formatBalance(transaction.txParams.value),
- },
- ]
- }
-
var txParams = transaction.txParams
var date = formatDate(transaction.time)
return (
- h('.transaction-list-item.flex-row.flex-space-between.cursor-pointer', {
+ h(`.transaction-list-item.flex-row.flex-space-between${transaction.hash ? '.pointer' : ''}`, {
key: `tx-${transaction.id + i}`,
onClick: (event) => {
+ if (!transaction.hash) return
var url = explorerLink(transaction.hash, parseInt(network))
chrome.tabs.create({ url })
},
diff --git a/ui/app/css/lib.css b/ui/app/css/lib.css
index 60c56422d..1eba7465b 100644
--- a/ui/app/css/lib.css
+++ b/ui/app/css/lib.css
@@ -5,7 +5,7 @@
}
.color-forest {
- color: #0A5448;
+ color: #0A5448;
}
/* lib */
@@ -107,6 +107,9 @@
user-select: none;
}
+.pointer {
+ cursor: pointer;
+}
.cursor-pointer {
cursor: pointer;
transform-origin: center center;