Skip to content

Commit

Permalink
fix QR codes on vouchers
Browse files Browse the repository at this point in the history
  • Loading branch information
talvasconcelos committed Oct 25, 2024
1 parent 51ea172 commit 2d0a9f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions templates/withdraw/print_qr.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<td style="width: 105mm">
<center>
<lnbits-qrcode
style="width: fit-content;"
:value="theurl + '/?lightning={{one}}'"
:options="{width: 150}"
></lnbits-qrcode>
</center>
</td>
Expand Down
5 changes: 3 additions & 2 deletions templates/withdraw/print_qr_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
<page size="A4" id="pdfprint">
{% for one in page %}
<div class="wrapper">
<img src="{{custom_url}}" alt="..." />
<img class="lnurlw_design" src="{{custom_url}}" alt="..." />
<span>{{ amt }} sats</span>
<div class="lnurlw">
<lnbits-qrcode
:value="theurl + '/?lightning={{one}}'"
:options="{width: 98, margin: 2, logo: false}"
></lnbits-qrcode>
</div>
</div>
Expand Down Expand Up @@ -51,7 +52,7 @@
top: calc(3.2mm + 1rem);
right: calc(4mm + 1rem);
}
.wrapper img {
.wrapper img.lnurlw_design {
display: block;
width: 187mm;
height: auto;
Expand Down

0 comments on commit 2d0a9f1

Please sign in to comment.