From c59aaadcde548737769846013a314939a0e7d4c4 Mon Sep 17 00:00:00 2001 From: Glandos Date: Mon, 1 Nov 2021 20:08:48 +0100 Subject: [PATCH] sidebar_table_layout switches to flex column layout (#905) * Fixes #896 sidebar_table_layout switches to flex column layout remove all 'float' buttons, replace them with nice flexboxes. bill_table needs a flex-basis because with a very small width, it has a 0 height. I don't really know why, but adding a flex-basis: auto shows it. * ensure new bill is on top of pagination --- ihatemoney/static/css/main.css | 1 + ihatemoney/templates/history.html | 27 ++++++++++--------- ihatemoney/templates/list_bills.html | 21 +++++++-------- .../templates/sidebar_table_layout.html | 2 +- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index a63391ba..849eed1b 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -339,6 +339,7 @@ footer .footer-left { #history_table { margin-top: 30px; margin-bottom: 30px; + flex-basis: auto; } @media (min-width: 768px) { diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html index e39b717f..21788517 100644 --- a/ihatemoney/templates/history.html +++ b/ihatemoney/templates/history.html @@ -126,20 +126,21 @@ {% endif %} {{ clear_history_modals() }} - - - {{ static_include("images/x.svg") | safe }} - {{ _("Clear Project History") }} - - - - - {{ static_include("images/x.svg") | safe }} - {{ _("Delete Stored IP Addresses") }} - - +
+ + + {{ static_include("images/x.svg") | safe }} + {{ _("Delete Stored IP Addresses") }} + + + + + {{ static_include("images/x.svg") | safe }} + {{ _("Clear Project History") }} + + +
-
{% if history %} diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 80ff1c35..61420d51 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -63,12 +63,6 @@ {% endblock %} {% block content %} - - - {{ static_include("images/plus.svg") | safe }} - {{ _("Add a new bill") }} - - -
+
{% if bills.pages > 1 %} -
{% if bills.total > 0 %} - -
{{ _("When?") }} @@ -149,7 +148,7 @@
{% if bills.pages > 1 %} -