fix: print qr code (#62)
Some checks failed
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled

This commit is contained in:
Tiago Vasconcelos 2025-09-12 14:26:18 +01:00 committed by GitHub
commit 8efacf2d4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 20 deletions

View file

@ -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",

View file

@ -4,23 +4,21 @@
<div class="" id="vue">
{% for page in link %}
<page size="A4" id="pdfprint">
<table style="width: 100%">
{% for threes in page %}
<tr style="height: 59.4mm">
{% for one in threes %}
<td style="width: 105mm">
<center>
<lnbits-qrcode
style="width: fit-content"
:value="theurl + '/?lightning={{one}}'"
:options="{width: 150}"
></lnbits-qrcode>
</center>
</td>
<div class="full-height content-center">
{% for row in page %}
<div class="row" style="max-height: 54mm">
{% for one in row %}
<div class="col-6">
<lnbits-qrcode
style="width: 50mm"
:value="theurl + '/?lightning={{one}}'"
:show-buttons="false"
></lnbits-qrcode>
</div>
{% endfor %}
</tr>
</div>
{% endfor %}
</table>
</div>
</page>
{% endfor %}
</div>

View file

@ -11,7 +11,8 @@
<div class="lnurlw">
<lnbits-qrcode
:value="theurl + '/?lightning={{one}}'"
:options="{width: 98, margin: 2, logo: false}"
:show-buttons="false"
:options="{width: 150}"
></lnbits-qrcode>
</div>
</div>
@ -61,9 +62,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 +85,8 @@
.wrapper .lnurlw {
display: block;
position: absolute;
top: 7.3mm;
left: 7.5mm;
top: 3mm;
left: 6mm;
transform: rotate(45deg);
}
}