From 7c2f5833a57d618276f5b0957de47a1dc7b0e6ec Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Wed, 10 Sep 2025 16:45:09 +0100 Subject: [PATCH 1/6] fix qr code placement --- templates/withdraw/print_qr_custom.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/withdraw/print_qr_custom.html b/templates/withdraw/print_qr_custom.html index 8e34097..f68f4b6 100644 --- a/templates/withdraw/print_qr_custom.html +++ b/templates/withdraw/print_qr_custom.html @@ -11,7 +11,7 @@
@@ -61,9 +61,10 @@ .wrapper .lnurlw { display: block; position: absolute; - top: calc(7.3mm + 1rem); - left: calc(7.5mm + 1rem); + top: calc(3mm + 1rem); + left: calc(6mm + 1rem); transform: rotate(45deg); + width: 27mm; } @media print { @@ -83,8 +84,8 @@ .wrapper .lnurlw { display: block; position: absolute; - top: 7.3mm; - left: 7.5mm; + top: 3mm; + left: 6mm; transform: rotate(45deg); } } From 986cce286bf3e9b58cb37349f25ad91704236c67 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Wed, 10 Sep 2025 17:04:48 +0100 Subject: [PATCH 2/6] fix custom design --- templates/withdraw/print_qr_custom.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/withdraw/print_qr_custom.html b/templates/withdraw/print_qr_custom.html index f68f4b6..c144a9f 100644 --- a/templates/withdraw/print_qr_custom.html +++ b/templates/withdraw/print_qr_custom.html @@ -12,6 +12,7 @@ From 51c8a5583e2759284ee64f83646aec873106bbd2 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Wed, 10 Sep 2025 17:14:14 +0100 Subject: [PATCH 3/6] cant set the size here --- templates/withdraw/print_qr.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/withdraw/print_qr.html b/templates/withdraw/print_qr.html index 1ccc1e9..a6965a8 100644 --- a/templates/withdraw/print_qr.html +++ b/templates/withdraw/print_qr.html @@ -11,9 +11,9 @@
From 99e629cf61df8e5c0f31bda1cab884eab0367021 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 11 Sep 2025 10:29:41 +0100 Subject: [PATCH 4/6] fix: failing checks --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8f281dd..a091367 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,9 @@ authors = [{ name = "Alan Bits", email = "alan@lnbits.com" }] urls = { Homepage = "https://lnbits.com", Repository = "https://github.com/lnbits/bitcoinswitch_extension" } dependencies = [ "lnbits>1" ] +[tool.poetry] +package-mode = false + [tool.uv] dev-dependencies = [ "black", From e16df6e19acd0774df997a02f78da4424d724b24 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 11 Sep 2025 11:32:57 +0100 Subject: [PATCH 5/6] print qr codes --- templates/withdraw/print_qr.html | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/templates/withdraw/print_qr.html b/templates/withdraw/print_qr.html index a6965a8..688e368 100644 --- a/templates/withdraw/print_qr.html +++ b/templates/withdraw/print_qr.html @@ -4,23 +4,21 @@
{% for page in link %} - - {% for threes in page %} - - {% for one in threes %} - +
+ {% for row in page %} +
+ {% for one in row %} +
+ +
{% endfor %} -
+ {% endfor %} -
-
- -
-
+
{% endfor %} @@ -64,6 +62,10 @@ data: null } } + }, + created() { + const link = JSON.parse('{{ link | tojson | safe }}') + console.log(link) } }) From 7d72abb5156890965eb67344391212850690ae7a Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 11 Sep 2025 11:40:12 +0100 Subject: [PATCH 6/6] remove debugging logs --- templates/withdraw/print_qr.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/templates/withdraw/print_qr.html b/templates/withdraw/print_qr.html index 688e368..3b73b13 100644 --- a/templates/withdraw/print_qr.html +++ b/templates/withdraw/print_qr.html @@ -62,10 +62,6 @@ data: null } } - }, - created() { - const link = JSON.parse('{{ link | tojson | safe }}') - console.log(link) } })