add animations - fix UI
This commit is contained in:
parent
b4aadeb7be
commit
4964a3d7c3
3 changed files with 54 additions and 46 deletions
|
|
@ -81,8 +81,8 @@
|
|||
<span translate>Pending Confirmation</span>:
|
||||
{{index.pendingAmountStr}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div ng-show="!index.updateError && index.walletScanStatus != 'error' && index.shouldHideBalance" on-hold="index.onHold()">
|
||||
<strong class="size-24" translate>[Balance Hidden]</strong>
|
||||
<div class="size-14" ng-if="!shouldCollapse" transalate>
|
||||
|
|
@ -106,7 +106,8 @@
|
|||
</div>
|
||||
</div> <!-- oh -->
|
||||
</ion-content>
|
||||
<ion-content overflow-scroll="true" ng-class="{m150t: !shouldCollapse, m50t: shouldCollapse}" delegate-handle="transactions" on-scroll="collapseBalanceContent(index.updatingTxHistory && index.txProgress > 5)">
|
||||
|
||||
<ion-content overflow-scroll="false" class="fade" ng-class="{m150t: !shouldCollapse, m50t: shouldCollapse}" delegate-handle="transactions" on-scroll="collapseBalanceContent(index.updatingTxHistory && index.txProgress > 5)">
|
||||
<div class="m50b">
|
||||
<div class="oh pr m20t" ng-show="index.incorrectDerivation">
|
||||
<div class="text-center text-warning">
|
||||
|
|
|
|||
|
|
@ -32,21 +32,22 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
ret.sendMaxInfo = {};
|
||||
var vanillaScope = ret;
|
||||
|
||||
$scope.collapseBalanceContent = function(val) {
|
||||
if (val) return;
|
||||
$scope.shouldCollapse = $ionicScrollDelegate.$getByHandle('transactions').getScrollPosition().top > 50 ? true : false;
|
||||
$scope.collapseBalanceContent = function(updating) {
|
||||
if (updating) return;
|
||||
|
||||
var scrollPosition = $ionicScrollDelegate.$getByHandle('transactions').getScrollPosition().top;
|
||||
$scope.shouldCollapse = scrollPosition > 50 ? true : false;
|
||||
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.freezeScroll = function() {
|
||||
var scrollPosition = $ionicScrollDelegate.$getByHandle('balance').getScrollPosition().top;
|
||||
var openRatio = $ionicSideMenuDelegate.getOpenRatio();
|
||||
|
||||
if ($ionicScrollDelegate.$getByHandle('balance').getScrollPosition().top < -75) {
|
||||
$ionicScrollDelegate.$getByHandle('balance').freezeScroll(true);
|
||||
return;
|
||||
}
|
||||
if ($ionicSideMenuDelegate.getOpenRatio() != 0)
|
||||
if (scrollPosition < -75 || openRatio != 0)
|
||||
$ionicScrollDelegate.$getByHandle('balance').freezeScroll(true);
|
||||
else
|
||||
$ionicScrollDelegate.$getByHandle('balance').freezeScroll(false);
|
||||
|
|
|
|||
|
|
@ -460,6 +460,10 @@ ul.manage li {
|
|||
}
|
||||
}
|
||||
|
||||
.fade {
|
||||
transition: margin-top .2s ease;
|
||||
}
|
||||
|
||||
.dn {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -1577,6 +1581,7 @@ input.ng-invalid-match {
|
|||
color: #fff;
|
||||
height: 150px;
|
||||
margin-bottom: 25px;
|
||||
transition: .4s all ease;
|
||||
}
|
||||
|
||||
.amountcollapsed {
|
||||
|
|
@ -1584,6 +1589,7 @@ input.ng-invalid-match {
|
|||
text-align: center;
|
||||
color: #fff;
|
||||
height: 50px;
|
||||
transition: .4s all ease;
|
||||
}
|
||||
|
||||
.alternative-amount {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue