Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
28 changes: 13 additions & 15 deletions templates/withdraw/print_qr.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 7 additions & 5 deletions templates/withdraw/print_qr_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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 {
Expand All @@ -83,8 +85,8 @@
.wrapper .lnurlw {
display: block;
position: absolute;
top: 7.3mm;
left: 7.5mm;
top: 3mm;
left: 6mm;
transform: rotate(45deg);
}
}
Expand Down