From ef786bd204eb0300fb6dcb59d3fbd4044f15686c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 16 Jan 2018 08:38:23 -0800 Subject: [PATCH] reduce dom nodes in each status --- routes/_components/Avatar.html | 12 +++++++----- routes/_components/Status.html | 18 ++++++++---------- routes/_components/StatusListItem.html | 9 +-------- 3 files changed, 16 insertions(+), 23 deletions(-) diff --git a/routes/_components/Avatar.html b/routes/_components/Avatar.html index 675b6882..103d8364 100644 --- a/routes/_components/Avatar.html +++ b/routes/_components/Avatar.html @@ -1,21 +1,23 @@ {{#await imagePromise}} +Profile picture for @{{account.acct}} {{then src}} -Profile picture for @{{account.acct}} +Profile picture for @{{account.acct}} {{catch error}} - + {{/await}} diff --git a/routes/_components/Status.html b/routes/_components/Status.html index 223c5600..680e0960 100644 --- a/routes/_components/Status.html +++ b/routes/_components/Status.html @@ -1,4 +1,4 @@ -
+
{{#if status.reblog}}
@@ -22,9 +22,7 @@ {{relativeDate}}
- +
{{{status.content}}}