From bec24835837fbda01ce89f526b241399a5bb1d0b Mon Sep 17 00:00:00 2001 From: AJ Date: Sun, 12 Oct 2025 15:05:17 -0400 Subject: [PATCH] Add auto-scroll to first amount match in receipt mapping modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When opening the map receipt modal, the transaction list now automatically scrolls to center on the first green-highlighted amount match (if one exists). This makes it easier to quickly find and select the most likely matching transaction without having to manually scroll through the list. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- MoneyMap/Pages/Receipts.cshtml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/MoneyMap/Pages/Receipts.cshtml b/MoneyMap/Pages/Receipts.cshtml index 154b434..2a4940e 100644 --- a/MoneyMap/Pages/Receipts.cshtml +++ b/MoneyMap/Pages/Receipts.cshtml @@ -317,7 +317,7 @@ Rows highlighted in green have matching amounts. -
+
@@ -330,10 +330,16 @@ + @{ + var firstMatchId = matches.FirstOrDefault(t => t.IsAmountMatch)?.Id; + } @foreach (var txn in matches) { var rowClass = txn.IsAmountMatch ? "table-success" : ""; - @@ -352,6 +358,25 @@
+ @if (firstMatchId.HasValue) + { + + } } else {