From f333e6a87599896ea790fef90c79c3ea3f01b0fb Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 9 Sep 2020 14:03:49 +0200 Subject: [PATCH] Fix profile picture width --- apps/note/templates/note/conso_form.html | 16 +++++++-------- .../note/templates/note/transaction_form.html | 20 +++++++++---------- note_kfet/static/css/custom.css | 5 +++++ note_kfet/static/js/consos.js | 2 -- 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/apps/note/templates/note/conso_form.html b/apps/note/templates/note/conso_form.html index d5914055..396c313c 100644 --- a/apps/note/templates/note/conso_form.html +++ b/apps/note/templates/note/conso_form.html @@ -10,22 +10,22 @@ SPDX-License-Identifier: GPL-3.0-or-later {% block content %}
-
+
{# User details column #} -
-
+
+ {# User selection column #} -
+

@@ -44,6 +44,7 @@ SPDX-License-Identifier: GPL-3.0-or-later

+ {# Summary of consumption and consume button #}
@@ -65,7 +66,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
- {# Show last used buttons #}
diff --git a/apps/note/templates/note/transaction_form.html b/apps/note/templates/note/transaction_form.html index f5ff0b73..7ffb7dc1 100644 --- a/apps/note/templates/note/transaction_form.html +++ b/apps/note/templates/note/transaction_form.html @@ -34,21 +34,21 @@ SPDX-License-Identifier: GPL-2.0-or-later

-
+
{# Preview note profile (picture, username and balance) #} -
-
+
+
-
- +
+ {% trans "Please select an user" %}
{# list of emitters #}
-
+

@@ -75,7 +75,7 @@ SPDX-License-Identifier: GPL-2.0-or-later {# list of receiver #}

-
+

@@ -97,8 +97,8 @@ SPDX-License-Identifier: GPL-2.0-or-later

{# Information on transaction (amount, reason, name,...) #} -
-
+
+

{% trans "Action" %} @@ -153,7 +153,7 @@ SPDX-License-Identifier: GPL-2.0-or-later

{# transaction history #} -
+

{% trans "Recent transactions history" %} diff --git a/note_kfet/static/css/custom.css b/note_kfet/static/css/custom.css index 5d901c9d..1f7cf763 100644 --- a/note_kfet/static/css/custom.css +++ b/note_kfet/static/css/custom.css @@ -22,6 +22,11 @@ border-bottom-color: rgba(0, 0, 0, .250); } +/* Fixed width picture column */ +.picture-col { + max-width: 202px; +} + /* Limit fluid container to a max size */ .container-fluid { max-width: 1600px; diff --git a/note_kfet/static/js/consos.js b/note_kfet/static/js/consos.js index 5a7e6144..78909600 100644 --- a/note_kfet/static/js/consos.js +++ b/note_kfet/static/js/consos.js @@ -29,7 +29,6 @@ $(document).ready(function () { // Switching in double consumptions mode should update the layout $('#double_conso').change(function () { $('#consos_list_div').removeClass('d-none') - $('#user_select_div').attr('class', 'col-xl-4') $('#infos_div').attr('class', 'col-sm-5 col-xl-6') const note_list_obj = $('#note_list') @@ -48,7 +47,6 @@ $(document).ready(function () { $('#single_conso').change(function () { $('#consos_list_div').addClass('d-none') - $('#user_select_div').attr('class', 'col-xl-7') $('#infos_div').attr('class', 'col-sm-5 col-md-4') const consos_list_obj = $('#consos_list')