From f28386b71fcef11c0a40f2a268b3139096740d2f Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 18 Dec 2024 12:46:02 -0500 Subject: [PATCH] ssb: Off by one on the unread line. --- apps/ssb.json | 2 +- apps/ssb/tf-news.js | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index c3c75444..81d1f20c 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&5mQzvcGxx+TD4O8INR+KPO6dxbb+7p8IchL44TWSrgE=.sha256" + "previous": "&pySy2RopLJGGrJRpoyzKM7zDzQUCxRXLuE62kS4C5s4=.sha256" } diff --git a/apps/ssb/tf-news.js b/apps/ssb/tf-news.js index be19d077..41efb504 100644 --- a/apps/ssb/tf-news.js +++ b/apps/ssb/tf-news.js @@ -201,6 +201,16 @@ class TfNewsElement extends LitElement { ${final_messages.map( (x) => html` + ${x.rowid == unread_rowid && x != final_messages[0] ? html`
` : undefined} - ` + ` )} `;