diff --git a/src/js/controllers/customAmount.js b/src/js/controllers/customAmount.js
index f6b96c22c..a3916a2d4 100644
--- a/src/js/controllers/customAmount.js
+++ b/src/js/controllers/customAmount.js
@@ -64,6 +64,14 @@ angular.module('copayApp.controllers').controller('customAmountController', func
var currency = parsedAmount.currency;
$scope.amountUnitStr = parsedAmount.amountUnitStr;
+ configService.whenAvailable(function (config) {
+ $scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
+
+ $timeout(function () {
+ $scope.$apply();
+ });
+ });
+
if (currency != 'BTC' && currency != 'BCH') {
// Convert to BTC or BCH
var config = configService.getSync().wallet.settings;
diff --git a/src/js/services/txFormatService.js b/src/js/services/txFormatService.js
index ebcb3886a..1932ebd2a 100644
--- a/src/js/services/txFormatService.js
+++ b/src/js/services/txFormatService.js
@@ -201,7 +201,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
var alternativeIsoCode = config.alternativeIsoCode;
// If fiat currency
- if (currency != 'BCH' && currency != 'BTC' && currency != 'sat') {
+ if (currency && currency.toUpperCase() != 'BCH' && currency.toUpperCase() != 'BTC' && currency != 'sat') {
amountUnitStr = $filter('formatFiatAmount')(amount) + ' ' + currency;
amountSat = rateService.fromFiat(amount, currency, coin).toFixed(0);
} else if (currency == 'sat') {
diff --git a/src/sass/qr.scss b/src/sass/qr.scss
index 62fd12eb7..5df26e37b 100644
--- a/src/sass/qr.scss
+++ b/src/sass/qr.scss
@@ -5,8 +5,8 @@ qrcode {
content: "";
background-size: 100% 100%;
display: block;
- left: 88px;
- margin-top: 88px;
+ left: calc(50% - 22px);
+ margin-top: calc(50% - 22px);
width: 44px;
height: 44px;
position:absolute;
diff --git a/src/sass/views/custom-amount.scss b/src/sass/views/custom-amount.scss
index b9bf65459..17973101d 100644
--- a/src/sass/views/custom-amount.scss
+++ b/src/sass/views/custom-amount.scss
@@ -26,16 +26,10 @@
height: 100%;
.qr-code {
text-align: center;
- margin-top: 24vh;
- margin-bottom: 7vh;
- @media(max-height: 800px) {
- margin-top: 18vh;
- }
- @media(max-height: 700px) {
- margin-top: 14vh;
- }
- @media(max-height: 600px) {
- margin-top: 8vh;
+ margin-top: 6px;
+ qrcode canvas {
+ height: 30vh;
+ max-height: 220px;
}
}
.info {
@@ -91,5 +85,34 @@
.address-types {
text-align: center;
}
+
+ .amount {
+ margin-top: 20vh;
+ margin-bottom: 4vh;
+ @media(max-height: 800px) {
+ margin-top: 12vh;
+ margin-bottom: 6vh;
+ }
+ @media(max-height: 700px) {
+ margin-top: 10vh;
+ margin-bottom: 4vh;
+ }
+ @media(max-height: 600px) {
+ margin-top: 6vh;
+ margin-bottom: 2vh;
+
+ }
+ width: 100%;
+ text-align: center;
+ //padding-top: 30px;
+ display: block;
+ align-items: center;
+ justify-content: center;
+
+ &-alternative {
+ line-height: 36px;
+ }
+ }
+
}
}
diff --git a/www/views/customAmount.html b/www/views/customAmount.html
index a4f2d57c9..b361a6da9 100644
--- a/www/views/customAmount.html
+++ b/www/views/customAmount.html
@@ -30,8 +30,22 @@
Return To Address