From 63b8c759ba8306824dd1bf6c583028cbc04e0efc Mon Sep 17 00:00:00 2001 From: Fornax Date: Sat, 4 Nov 2023 16:57:28 +0100 Subject: [PATCH] Make tax information scrollable on small screens --- res/static/style/layout.css | 2 +- .../src/admin_panel/MollieSettlement.svelte | 74 ++++++++++--------- 2 files changed, 39 insertions(+), 37 deletions(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index c4bc2b9..2a53d36 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -98,7 +98,7 @@ footer { } footer>.footer_content { - background-color: var(--body_background); + background: var(--body_background); color: var(--body_text_color); display: inline-block; width: 1000px; diff --git a/svelte/src/admin_panel/MollieSettlement.svelte b/svelte/src/admin_panel/MollieSettlement.svelte index b66350b..acd5063 100644 --- a/svelte/src/admin_panel/MollieSettlement.svelte +++ b/svelte/src/admin_panel/MollieSettlement.svelte @@ -101,46 +101,48 @@ onMount(get_payments);

Taxes per country

- - - - - - - - - - {#each Object.entries(per_country) as [country, row]} - - - - - - - - - {/each} - - - - - - - - - {#if per_country.NL} +
+
CountryPaymentsAmountVATVAT%Total
{country}{row.count}{row.vat_fraction*100}%
Total{totals.count}
- - - - + + + + + + + + {#each Object.entries(per_country) as [country, row]} + + + + + + + + + {/each} + + + + + + - + - {/if} -
Total - NL{totals.count - per_country.NL.count}CountryPaymentsAmountVATVAT%Total
{country}{row.count}{row.vat_fraction*100}%
Total{totals.count}
- + {#if per_country.NL} + + Total - NL + {totals.count - per_country.NL.count} + + + + + + {/if} + +

All payments ({payments.length})