Browse Source

style: minor tweaks

fee_issues
Eneko Illarramendi 5 years ago
parent
commit
efbba20872
  1. 6
      lnbits/core/templates/core/index.html
  2. 7
      lnbits/extensions/tpos/templates/tpos/_tpos.html
  3. 4
      lnbits/extensions/withdraw/templates/withdraw/display.html
  4. 2
      lnbits/extensions/withdraw/views_api.py
  5. 8
      lnbits/static/css/base.css
  6. 5
      lnbits/static/scss/base.scss
  7. 11
      lnbits/templates/public.html

6
lnbits/core/templates/core/index.html

@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "public.html" %}
{% block scripts %}
@ -9,8 +9,8 @@
{% endblock %}
{% block page %}
<div class="row q-col-gutter-md justify-between">
<div class="col-12 col-md-7 q-gutter-y-md">
<div class="row q-col-gutter-md justify-center">
<div class="col-12 col-md-7 col-lg-6 q-gutter-y-md">
<q-card>
<q-card-section>

7
lnbits/extensions/tpos/templates/tpos/_tpos.html

@ -4,11 +4,8 @@
label="About TPoS">
<q-card>
<q-card-section>
<p>Thiago's Point of Sale, is a secure, mobile-ready, instant and shareable point of sale terminal (PoS) for merchants. The PoS is linked to your LNbits wallet, but completely air-gapped so users can ONLY create invoices. To share the TPoS, hit the hashtag on the terminal
<br/><br/><small>Created by <a href="https://github.com/talvasconcelos" target="_blank">Tiago Vasconcelos</a>.</small>
<p>Thiago's Point of Sale is a secure, mobile-ready, instant and shareable point of sale terminal (PoS) for merchants. The PoS is linked to your LNbits wallet but completely air-gapped so users can ONLY create invoices. To share the TPoS hit the hash on the terminal.</p>
<small>Created by <a href="https://github.com/talvasconcelos" target="_blank">Tiago Vasconcelos</a>.</small>
</q-card-section>
</q-card>
</q-expansion-item>

4
lnbits/extensions/withdraw/templates/withdraw/display.html

@ -3,7 +3,7 @@
{% block page %}
<div class="row q-col-gutter-md justify-center">
<div class="col-12 col-sm-6 col-md-4">
<div class="col-12 col-sm-6 col-md-5 col-lg-4">
<q-card class="q-pa-lg">
<q-card-section class="q-pa-none">
<div class="text-center q-mb-md">
@ -22,7 +22,7 @@
</q-card-section>
</q-card>
</div>
<div class="col-12 col-sm-6 col-md-4 q-gutter-y-md">
<div class="col-12 col-sm-6 col-md-5 col-lg-4 q-gutter-y-md">
<q-card>
<q-card-section>
<h6 class="text-subtitle1 q-mb-sm q-mt-none">LNbits LNURL-withdraw link</h6>

2
lnbits/extensions/withdraw/views_api.py

@ -55,7 +55,7 @@ def api_link_retrieve(link_id):
"is_unique": {"type": "boolean", "required": True},
}
)
def api_link_create(link_id=None):
def api_link_create_or_update(link_id=None):
if g.data["max_withdrawable"] < g.data["min_withdrawable"]:
return jsonify({"message": "`max_withdrawable` needs to be at least `min_withdrawable`."}), Status.BAD_REQUEST

8
lnbits/static/css/base.css

@ -39,5 +39,9 @@
.q-table--dense .q-table__bottom {
padding-right: 6px !important; }
video {
border-radius: 3px; }
a.inherit {
color: inherit;
text-decoration: none; }
video {
border-radius: 3px; }

5
lnbits/static/scss/base.scss

@ -66,6 +66,11 @@ body.body--dark .q-field--error {
}
}
a.inherit {
color: inherit;
text-decoration: none;
}
// QR video
video {

11
lnbits/templates/public.html

@ -4,3 +4,14 @@
{% block beta %}{% endblock %}
{% block drawer_toggle %}{% endblock %}
{% block drawer %}{% endblock %}
{% block toolbar_title %}
<a href="/" class="inherit">
{% if SITE_TITLE != 'LNbits' %}
{{ SITE_TITLE }}
{% else %}
<strong>LN</strong>bits
{% endif %}
</a>
{% endblock %}

Loading…
Cancel
Save