From 786ee368e5694305bba81ba189d689c037b21051 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Fri, 30 Oct 2026 13:34:29 +0100 Subject: [PATCH 1/3] feat(tilbud): clearly show which offers are already on the list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Picked offers were only marked by a checked box + faint green bg, easy to miss while scrolling 467 offers (so you'd try to re-add them). Add a green '✓ på seddel' badge + green left border on picked offers, and a '✓ Kun valgte' filter button to show only what's already on the list. Driven by the existing .picked class, so it updates instantly on pick/unpick. --- templates/tilbud.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/templates/tilbud.html b/templates/tilbud.html index 5a71be0..bcb9059 100644 --- a/templates/tilbud.html +++ b/templates/tilbud.html @@ -40,6 +40,10 @@ .offer { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 0.55rem 1rem; border-bottom: 1px solid var(--border); } .offer:last-child { border-bottom: none; } .offer.picked { background: var(--green-light); } + .offer.picked { box-shadow: inset 3px 0 0 var(--green); } + .on-list { display: none; font-size: 10px; font-weight: 700; color: #fff; background: var(--green); border-radius: 4px; padding: 1px 6px; vertical-align: middle; white-space: nowrap; } + .offer.picked .on-list { display: inline-block; } + .btn.only-picked.active { background: var(--green); color: #fff; border-color: var(--green); } .offer input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; } .o-name { font-size: 14px; } .o-de { font-size: 10px; color: #b0aba3; font-style: italic; margin-top: 1px; } @@ -78,6 +82,7 @@
+ {{ picked_count }} på seddel
@@ -95,7 +100,7 @@