From 8c0011d7ffe35ac8488bef2a479c26f6c3328467 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Mon, 20 Apr 2026 21:51:12 +0200 Subject: [PATCH] fixd calculation of sums for filtered transactions Signed-off-by: Stephan Richter --- frontend/src/routes/accounting/account.svelte | 6 +----- web/src/main/resources/web/css/default-color.css | 3 ++- web/src/main/resources/web/css/default.css | 6 ++++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/routes/accounting/account.svelte b/frontend/src/routes/accounting/account.svelte index 54f58237..a45032cf 100644 --- a/frontend/src/routes/accounting/account.svelte +++ b/frontend/src/routes/accounting/account.svelte @@ -35,14 +35,10 @@ } function checker(taglist, filter){ - // TODO: make case-insensitive for (var f of filter){ var included = false; for (var t of taglist){ - if (t.toLowerCase() == f) { - included = true; - break; - } + if (t.toLowerCase() == f && (included = true)) break; } if (!included) return false; } diff --git a/web/src/main/resources/web/css/default-color.css b/web/src/main/resources/web/css/default-color.css index 621b7377..9ad642e2 100644 --- a/web/src/main/resources/web/css/default-color.css +++ b/web/src/main/resources/web/css/default-color.css @@ -62,11 +62,12 @@ tr:hover .taglist .tag button { background: orange; color: black; } - +.account .sums, .archive{ background: black; } +.account .sums:hover, .archive.hover{ background: orange; color: black; diff --git a/web/src/main/resources/web/css/default.css b/web/src/main/resources/web/css/default.css index 40d2dfc1..b32d9411 100644 --- a/web/src/main/resources/web/css/default.css +++ b/web/src/main/resources/web/css/default.css @@ -365,6 +365,12 @@ textarea{ display: inherit; } +.account .sums{ + position: sticky; + bottom: 0; + z-index: 100; +} + .taglist .editor > span{ display: inline-block; min-width: 150px;