resize font
This commit is contained in:
parent
a72bd7fde9
commit
d7b85e46e5
4 changed files with 15 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue