From 00386ef482cbed77ec966ec544bed68359e3fe59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Thu, 1 Jul 2021 09:55:40 +0200 Subject: [PATCH] Various UI mobile fix --- canaille/templates/forgotten-password.html | 20 ++++++----- canaille/templates/login.html | 8 +++-- canaille/templates/password.html | 10 ++++-- canaille/templates/profile.html | 41 +++++++++++++--------- 4 files changed, 49 insertions(+), 30 deletions(-) diff --git a/canaille/templates/forgotten-password.html b/canaille/templates/forgotten-password.html index 436f2bfb..12b6bf2d 100644 --- a/canaille/templates/forgotten-password.html +++ b/canaille/templates/forgotten-password.html @@ -33,14 +33,18 @@ {{ form.hidden_tag() if form.hidden_tag }} {{ sui.render_field(form.login, icon="user") }} - - {{ _("Login page") }} +
+
+ {{ _("Login page") }} + +
+
diff --git a/canaille/templates/login.html b/canaille/templates/login.html index 6fec377d..02e962eb 100644 --- a/canaille/templates/login.html +++ b/canaille/templates/login.html @@ -34,8 +34,12 @@ {{ sui.render_field(form.password, icon="lock") }} {% endif %} - - {{ _("Forgotten password") }} +
+
+ {{ _("Forgotten password") }} + +
+
{% endblock %} diff --git a/canaille/templates/password.html b/canaille/templates/password.html index 411d508d..e1b1583c 100644 --- a/canaille/templates/password.html +++ b/canaille/templates/password.html @@ -31,9 +31,13 @@ {{ form.hidden_tag() if form.hidden_tag }} {{ sui.render_field(form.password, icon="lock") }} - - {{ _("Forgotten password") }} - {{ _("I am not %(username)s", username=username) }} +
+ +
{% endblock %} diff --git a/canaille/templates/profile.html b/canaille/templates/profile.html index 2bd6414a..176c2ced 100644 --- a/canaille/templates/profile.html +++ b/canaille/templates/profile.html @@ -153,23 +153,30 @@ {% endif %} - - {% if user.admin and edited_user and user.uid != edited_user.uid %} - - {{ _("Impersonate") }} - - {% endif %} - {% if user.moderator and edited_user or self_deletion %} - - {% endif %} +
+
+ {% if user.moderator and edited_user or self_deletion %} + + {% endif %} + + {% if user.admin and edited_user and user.uid != edited_user.uid %} + + {{ _("Impersonate") }} + + {% endif %} + + + +
+
{% endblock %}