aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-list.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-11 10:55:01 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-11 10:55:01 +0800
commitf9432c59826d95dbdaf70a3da4a8a453137efb11 (patch)
tree79f4a39140c2256704b1c322bd497ad05aa0cc9e /ui/app/components/tx-list.js
parentd53780bcdcf958b4894e3876ef4b3c6c90d91e0c (diff)
downloadtangerine-wallet-browser-f9432c59826d95dbdaf70a3da4a8a453137efb11.tar.gz
tangerine-wallet-browser-f9432c59826d95dbdaf70a3da4a8a453137efb11.tar.zst
tangerine-wallet-browser-f9432c59826d95dbdaf70a3da4a8a453137efb11.zip
Move Txs list item styles into classes
Diffstat (limited to 'ui/app/components/tx-list.js')
-rw-r--r--ui/app/components/tx-list.js54
1 files changed, 17 insertions, 37 deletions
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index 368854786..57d7af4f1 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -111,69 +111,49 @@ TxList.prototype.renderTransactionListItem = function () {
const { address, transactionStatus, transactionAmount, dateString } = props
- return h('div.flex-column', {
- style: {
- alignItems: 'stretch',
- justifyContent: 'flex-start',
- margin: '0.6em 1.3em 0.6em 1.3em',
- overflow: 'none'
- }
+ return h('div.flex-column.tx-list-item-wrapper', {
+ style: {}
}, [
- h('div', {
- style: {
- flexGrow: 1,
- flexShrink: 1,
- flexBasis: 'auto',
- marginTop: '0.3em',
- }
+ h('div.tx-list-date-wrapper', {
+ style: {}
}, [
- h('span', {}, [
+ h('span.tx-list-date', {}, [
dateString,
])
]),
- h('div.flex-row', {
- style: {
- alignItems: 'stretch',
- }
+ h('div.flex-row.tx-list-content-wrapper', {
+ style: {}
}, [
- h('div', {
- style: {
- flexGrow: 1,
- }
+ h('div.tx-list-identicon-wrapper', {
+ style: {}
}, [
h(Identicon, {
address,
- diameter: 24,
+ diameter: 18,
})
]),
- h('div', {
- style: {
- flexGrow: 3,
- }
+ h('div.tx-list-account-wrapper', {
+ style: {}
}, [
h('span', {}, [
'0x82df11be...7684', //address
]),
]),
- h('div', {
- style: {
- flexGrow: 5,
- }
+ h('div.tx-list-status-wrapper', {
+ style: {}
}, [
- h('span', {}, [
+ h('span.tx-list-status', {}, [
transactionStatus,
]),
]),
- h('div.flex-column', {
- style: {
- flexGrow: 2,
- }
+ h('div.flex-column.tx-list-details-wrapper', {
+ style: {}
}, [
h('span', {}, [