style: minor tweaks

This commit is contained in:
Eneko Illarramendi 2020-04-21 08:18:31 +02:00
parent 93e51a7398
commit efbba20872
7 changed files with 30 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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; }

View File

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

View File

@ -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 %}