+
diff --git a/src/js/controllers/modals/inputAmount.js b/src/js/controllers/modals/inputAmount.js
index 0335655dd..365b2b236 100644
--- a/src/js/controllers/modals/inputAmount.js
+++ b/src/js/controllers/modals/inputAmount.js
@@ -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) {
diff --git a/src/sass/main.scss b/src/sass/main.scss
index fdab2fa47..0ca43d701 100644
--- a/src/sass/main.scss
+++ b/src/sass/main.scss
@@ -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;