From 509accae3aac79c141e24a10adeb82eb106daaa5 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Thu, 23 Apr 2026 20:17:17 +0200 Subject: [PATCH] minor improvement: automatically scrolling to bottom Signed-off-by: Stephan Richter --- frontend/src/routes/accounting/account.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/routes/accounting/account.svelte b/frontend/src/routes/accounting/account.svelte index ac221f1a..d7806b1c 100644 --- a/frontend/src/routes/accounting/account.svelte +++ b/frontend/src/routes/accounting/account.svelte @@ -27,6 +27,7 @@ if (!transaction.destination.id) sums[0] += transaction.amount; if (!transaction.source.id) sums[0] -= transaction.amount; } + window.setTimeout(scrollToBottom,100); return sums; } @@ -65,6 +66,10 @@ load(); } + function scrollToBottom(){ + window.scrollTo(0, document.body.scrollHeight); + } + onMount(load);