resize font

This commit is contained in:
Javier 2016-08-01 17:35:31 -03:00
commit d7b85e46e5
4 changed files with 15 additions and 3 deletions

View file

@ -28,7 +28,13 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
$scope.showAlternativeAmount = !$scope.showAlternativeAmount;
};
function checkFontSize() {
if ($scope.amount && $scope.amount.length >= 13) $scope.smallFont = true;
else $scope.smallFont = false;
};
$scope.pushDigit = function(digit) {
checkFontSize();
if ($scope.amount && $scope.amount.length >= 20) return;
$scope.amount = $scope.amount + digit;
@ -71,10 +77,12 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
$scope.amount = $scope.amount.slice(0, -1);
processAmount($scope.amount);
checkFontSize();
};
function resetAmount() {
$scope.amount = $scope.alternativeResult = $scope.amountResult = $scope.globalResult = '';
checkFontSize();
};
function processAmount(val) {

View file

@ -99,6 +99,10 @@ h4.title a {
}
}
.small-font {
font-size: 34px !important;
}
.modal-content h4, .glidera h4, .coinbase h4 {
background: #F6F7F9;
padding: 25px 0px 5px 10px;