From 636323808be0fe6fec5a39c93bb2a72b357a718f Mon Sep 17 00:00:00 2001 From: evavirseda Date: Mon, 17 Jul 2023 14:26:05 +0200 Subject: [PATCH 1/5] feat: cleanup QR --- .../components/popups/ReceiveAddressPopup.svelte | 2 +- packages/shared/components/QR.svelte | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/desktop/components/popups/ReceiveAddressPopup.svelte b/packages/desktop/components/popups/ReceiveAddressPopup.svelte index bb98452eec0..526e9c2309d 100644 --- a/packages/desktop/components/popups/ReceiveAddressPopup.svelte +++ b/packages/desktop/components/popups/ReceiveAddressPopup.svelte @@ -11,7 +11,7 @@ {title}
- +
diff --git a/packages/shared/components/QR.svelte b/packages/shared/components/QR.svelte index ba3da739c09..6687ca2ca48 100644 --- a/packages/shared/components/QR.svelte +++ b/packages/shared/components/QR.svelte @@ -1,15 +1,13 @@ -
- {data} +
+ {data}
+{data} diff --git a/packages/shared/components/buttons/ReceiveAddressButton.svelte b/packages/shared/components/buttons/ReceiveAddressButton.svelte index 456ab9e3129..7cfde31710d 100644 --- a/packages/shared/components/buttons/ReceiveAddressButton.svelte +++ b/packages/shared/components/buttons/ReceiveAddressButton.svelte @@ -21,7 +21,7 @@ on:click={onReceiveClick} > {localize('general.receiveFunds')} - + Date: Mon, 17 Jul 2023 17:17:20 +0200 Subject: [PATCH 3/5] fix --- packages/shared/components/QR.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shared/components/QR.svelte b/packages/shared/components/QR.svelte index cd017b31480..93661841eb8 100644 --- a/packages/shared/components/QR.svelte +++ b/packages/shared/components/QR.svelte @@ -14,7 +14,7 @@ background: '#ffffff00', foreground: color, level: 'L', - size: 200, // if this value is changed, the image gets some weird padding. Therefore we need to do the sizing with css + size: 135, value: data, }) @@ -26,4 +26,4 @@ } -{data} +{data} From 22745b163e72fae2d3ab2264df5e82b84d82adfa Mon Sep 17 00:00:00 2001 From: Jean Carlo Noguera Date: Thu, 3 Aug 2023 12:50:16 +0200 Subject: [PATCH 4/5] styles: center qr in its container --- packages/shared/components/buttons/ReceiveAddressButton.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/components/buttons/ReceiveAddressButton.svelte b/packages/shared/components/buttons/ReceiveAddressButton.svelte index 7cfde31710d..dabbd88935b 100644 --- a/packages/shared/components/buttons/ReceiveAddressButton.svelte +++ b/packages/shared/components/buttons/ReceiveAddressButton.svelte @@ -21,7 +21,7 @@ on:click={onReceiveClick} > {localize('general.receiveFunds')} - + Date: Sat, 19 Aug 2023 18:58:24 +0200 Subject: [PATCH 5/5] chore: cleanup code --- packages/shared/components/QR.svelte | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/shared/components/QR.svelte b/packages/shared/components/QR.svelte index 93661841eb8..7d4a5d50541 100644 --- a/packages/shared/components/QR.svelte +++ b/packages/shared/components/QR.svelte @@ -1,16 +1,17 @@ -{data} +{data}