diff --git a/css/src/main.css b/css/src/main.css index fd1a09464..68afbaa55 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -133,7 +133,7 @@ header .alt-currency { } .head { - padding-left: 20px; + padding: 0.9rem 0; -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.10); box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.10); background-color: #FFF; @@ -146,7 +146,7 @@ header .alt-currency { .head .title h1 { float: left; - padding: 12px 10px; + padding-left: 2rem; margin: 0; } @@ -157,29 +157,32 @@ header .alt-currency { .head .menu a.dropdown { display: block; - height: 62px; - width: 140px; - padding: 12px 5px; + margin: 0 1rem 0 2rem; + height: 48px; + width: 100px; text-align: center; } .head .menu a.dropdown:hover, .head .menu a.dropdown.hover { border-bottom: 1px solid #fff; + top: 0; } .head .menu ul { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; position: absolute; - right: 0; - width: 160px; + right: 14px; + width: 100px; list-style-type: none; - top: 61px; + top: 47px;nt } .head .menu ul.hover { background: #FFFFFF; - -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.25); - box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.25); + -moz-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.25); + box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.25); } .head .menu ul li a { @@ -499,6 +502,7 @@ a.button-setup { .size-21 { font-size: 21px; } .size-24 { font-size: 24px; } .size-36 { font-size: 36px; } +.size-42 { font-size: 42px; } .size-48 { font-size: 48px; } .size-60 { font-size: 60px; } .size-72 { font-size: 72px; } @@ -575,7 +579,7 @@ a.button-setup { padding-bottom: 0.5rem; } -.line-dashed { +.p-dashed { border-top: 1px dashed #3C5269; margin: 1rem 0; padding: 1rem 0; @@ -608,6 +612,19 @@ a.button-setup { color: #B6E9DF; } +.founds .locked { + font-size: 11px; + z-index: -99999; + background-color: #213140; + position: absolute; + top: 52px; + width: 250px; + left: 0; + padding: 0.3rem 0.7rem; + color: white; + border-bottom: 1px solid #374756; +} + .hidden { visibility: hidden; } @@ -791,10 +808,13 @@ input[type=number]::-webkit-outer-spin-button { background-color: #1ABC9C; } +.label { + font-weight: 700; + padding: 0.3rem 0.4rem; +} + .label.alert { background-color: #C0392A; - padding: 0.3rem 0.4rem; - font-weight: 700; } .bg-alert { @@ -1099,8 +1119,7 @@ button.gray:focus, } .photo-container { - margin-right: 10px; - padding-top: 0.4rem; + margin-right: 3px; display: inline-block; width: 35px; height: 35px; @@ -1115,7 +1134,7 @@ a:hover .photo-container { color: #fff; } -.side-nav {padding-top: 38px;} +.side-nav {padding-top: 50px;} .side-nav li { font-size: 16px; @@ -1124,6 +1143,10 @@ a:hover .photo-container { margin-bottom: 10px; } +.side-nav li>a:first-child:not(.button) { + padding-left: 40px; +} + .side-nav li.active>a:first-child:not(.button) { color: #2C3E50; background-color: #F8F8FB; @@ -1131,7 +1154,6 @@ a:hover .photo-container { .side-nav li>a:first-child:not(.button), .side-nav li a:not(.button) { color: #fff; - padding-left: 40px; } .side-nav li>a:first-child:not(.button) i { diff --git a/css/src/mobile.css b/css/src/mobile.css index 68765adde..89c1513e9 100644 --- a/css/src/mobile.css +++ b/css/src/mobile.css @@ -195,5 +195,10 @@ height: auto; } + .label { + font-size: 80%; + padding: 0.15rem 0.2rem; + } + } diff --git a/js/controllers/history.js b/js/controllers/history.js index 00fb3689c..36903cfc3 100644 --- a/js/controllers/history.js +++ b/js/controllers/history.js @@ -58,6 +58,9 @@ angular.module('copayApp.controllers').controller('HistoryController', return; } + _.each(res, function (r) { + r.ts = r.minedTs || r.sentTs; + }); $scope.blockchain_txs = w.cached_txs = res; $scope.loading = false; setTimeout(function() { diff --git a/js/models/Wallet.js b/js/models/Wallet.js index 66a391391..d86abf89a 100644 --- a/js/models/Wallet.js +++ b/js/models/Wallet.js @@ -2840,7 +2840,7 @@ Wallet.prototype.getTransactionHistory = function(cb) { tx.amountSat = Math.abs(amount); tx.amount = tx.amountSat * satToUnit; tx.sentTs = proposal ? proposal.sentTs : undefined; - tx.minedTs = tx.time * 1000; + tx.minedTs = !_.isNaN(tx.time) ? tx.time * 1000 : undefined; }; if (addresses.length > 0) { @@ -2850,6 +2850,7 @@ Wallet.prototype.getTransactionHistory = function(cb) { var history = _.map(txs, function(tx) { decorateTx(tx); + console.log(tx); return tx; }); return cb(null, history); diff --git a/views/history.html b/views/history.html index 18102d26b..d4ee065bb 100644 --- a/views/history.html +++ b/views/history.html @@ -23,43 +23,40 @@
No transactions yet.
-
-
-
-
+
+
+
+   + +
+ +
+ {{btx.amount| noFractionNumber}} {{$root.wallet.settings.unitName}} + {{btx.action}} +
+ +
+   + {{ (btx.action == 'received' ? 'on' : 'to') | translate }} {{btx.labelTo}} +
+ +
+ {{btx.comment}} +
+ +
+ Unconfirmed + {{btx.confirmations || 0}} Confirmations + Confirmed +
+ + -
-
- broadcasted - -
-
- mined - -
-
-
-
-
- {{btx.action}} {{ (btx.action == 'received' ? 'on' : 'to') | translate }} {{btx.labelTo}} - {{btx.comment}} -
- +
diff --git a/views/includes/head.html b/views/includes/head.html index 41c0cad7b..18cf9b318 100644 --- a/views/includes/head.html +++ b/views/includes/head.html @@ -2,19 +2,21 @@

{{$root.title}}

+ + +
+ {{'Manage wallets' | translate }} +
diff --git a/views/includes/sidebar.html b/views/includes/sidebar.html index 9e8df0000..e7e58d7cf 100644 --- a/views/includes/sidebar.html +++ b/views/includes/sidebar.html @@ -20,12 +20,16 @@ {{totalBalance || 0 |noFractionNumber}} {{$root.wallet.settings.unitName}} {{totalBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}
-
- {{'Locked'|translate}}   +
+ + + {{'Locked'|translate}}   + - {{lockedBalance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}} -   - + {{lockedBalance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}} - {{lockedBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}} + + +
@@ -73,7 +77,7 @@ - {{'Add Wallet' | translate }} +