From abde709e540321cf19bf438f1bacb8939b53b1e1 Mon Sep 17 00:00:00 2001 From: Cory McWilliams <cory@unprompted.com> Date: Wed, 16 Apr 2025 19:27:24 -0400 Subject: [PATCH] prettier. --- apps/ssb/tf-message.js | 17 ++++++----------- apps/storage/app.js | 4 +--- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 112c1164c..9558f99be 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -318,10 +318,9 @@ class TfMessageElement extends LitElement { > + ${this.total_child_messages(this.message) + ' More'} </button> - `; + `; } else { - return html` - <div class="w3-container w3-margin-bottom"> + return html` <div class="w3-container w3-margin-bottom"> ${repeat( this.message.child_messages || [], (x) => x.id, @@ -342,8 +341,8 @@ class TfMessageElement extends LitElement { style="box-sizing: border-box" @click=${() => self.set_expanded(false)} > - Collapse</button - >`; + Collapse + </button>`; } } else { return undefined; @@ -553,12 +552,8 @@ class TfMessageElement extends LitElement { ` : undefined; return html` - <div class="w3-section w3-container"> - ${reply} - </div> - <footer> - ${this.render_children()} - </footer> + <div class="w3-section w3-container">${reply}</div> + <footer>${this.render_children()}</footer> `; } diff --git a/apps/storage/app.js b/apps/storage/app.js index 7b6c89088..91fd53a36 100644 --- a/apps/storage/app.js +++ b/apps/storage/app.js @@ -62,9 +62,7 @@ function nice_size(bytes) { } async function main() { - await app.setDocument( - '<p style="color: #fff">Analyzing feeds...</p>' - ); + await app.setDocument('<p style="color: #fff">Analyzing feeds...</p>'); let most_follows = get_most_follows(); let total = await get_total(); let identities = await ssb.getAllIdentities();