From 3ef795452dd04b9cad7e3806fd5fa00435a90ba9 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 1 Oct 2025 12:27:04 -0400 Subject: [PATCH] ssb: Condense child messages a bit. --- apps/ssb.json | 2 +- apps/ssb/tf-message.js | 38 +++++++++++++++++++++++++------------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 333138a04..61a4a91b9 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&01jXxJgs24zTcJk+csXeUWfm/MQ/+94Zy7K0r2OYmWw=.sha256" + "previous": "&ULwb8udTxSkqf+mcZ0NxJs6p/hGB03eQEEKzJvWO3fk=.sha256" } diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index fbacb5ef2..83ed432c3 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -24,6 +24,7 @@ class TfMessageElement extends LitElement { channel: {type: String}, channel_unread: {type: Number}, recent_reactions: {type: Array}, + depth: {type: Number}, }; } @@ -40,6 +41,7 @@ class TfMessageElement extends LitElement { this.expanded = {}; this.channel_unread = -1; this.recent_reactions = []; + this.depth = 0; } connectedCallback() { @@ -362,23 +364,26 @@ class TfMessageElement extends LitElement { `; } else { - return html`
+ return html`
+