From 40879b3db1b07730ea15f80a90da0b00517bf1ac Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Wed, 11 Mar 2026 13:39:40 +0200 Subject: [PATCH] =?UTF-8?q?Deadline-sarake=20ekaksi=20teht=C3=A4v=C3=A4lis?= =?UTF-8?q?tassa,=20k=C3=A4ynniss=C3=A4-rivit=20vihre=C3=A4ll=C3=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- index.html | 2 +- script.js | 4 ++-- style.css | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 616d20e..bc87e95 100644 --- a/index.html +++ b/index.html @@ -474,12 +474,12 @@ + - diff --git a/script.js b/script.js index 4426120..d95b957 100644 --- a/script.js +++ b/script.js @@ -3975,14 +3975,14 @@ function renderTasksList() { tbody.innerHTML = tasks.map(t => { const overdue = t.deadline && t.status !== 'valmis' && t.deadline < today; const soon = t.deadline && t.status !== 'valmis' && !overdue && t.deadline <= new Date(Date.now()+3*86400000).toISOString().slice(0,10); - const rowClass = overdue ? 'todo-row-overdue' : (soon ? 'todo-row-soon' : (t.status === 'valmis' ? 'todo-row-done' : '')); + const rowClass = overdue ? 'todo-row-overdue' : (soon ? 'todo-row-soon' : (t.status === 'kaynnissa' ? 'todo-row-active' : (t.status === 'valmis' ? 'todo-row-done' : ''))); return ` + - `; diff --git a/style.css b/style.css index c3f4424..e7fc931 100644 --- a/style.css +++ b/style.css @@ -1133,6 +1133,8 @@ span.empty { .todo-row-overdue:hover { background:#fde8e8 !important; } .todo-row-soon { background:#fffbeb !important; } .todo-row-soon:hover { background:#fef3c7 !important; } +.todo-row-active { background:#ecfdf5 !important; } +.todo-row-active:hover { background:#d1fae5 !important; } .todo-row-done { opacity:0.55; } .todo-row-done:hover { opacity:0.75; } .priority-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:0.72rem; font-weight:600; }