From a9f365eb44f588b7bb81c53cd2ef9559c35478ff Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Sun, 18 Oct 2020 18:12:58 +0200 Subject: [PATCH] style toots --- main.js | 2 +- views/partials/toots.pug | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index d18cce9..ea92b62 100755 --- a/main.js +++ b/main.js @@ -14,7 +14,7 @@ var jsonParsedLikes, jsonParsedOutbox; * You can filter the export in the following vars */ const min_length = 0; // minmum character length of toots to display -const max_toots = 10// maximum length +const max_toots = 20// maximum length const filterBiggerTootsBeforeSlicing = false; // filter only long toots const filterOnlyHavingMedias = false; // filter only toots having medias const displayMedias = true; // display medias in toots diff --git a/views/partials/toots.pug b/views/partials/toots.pug index f951728..2185a18 100644 --- a/views/partials/toots.pug +++ b/views/partials/toots.pug @@ -8,17 +8,16 @@ div.container #{toot_counter = outbox.length} each oredredItem in outbox article - - div.status.status-public - p.toot_counter= toot_counter-=1 + div.status.status-public.flex + p.toot_counter= (toot_counter-=1) a(href=oredredItem['object'].url) i.fa.fa-paperplane-o img.header(src='/avatar.gif') div.date-published=oredredItem['object'].published - blockquote.published(!=oredredItem['object'].content) + blockquote.pl-6.published(!=oredredItem['object'].content) if oredredItem['object'].attachment && oredredItem['object'].attachment.length if(!displayMedias) - sub.font-medium.no-media Medias are not displayed + sub.font-medium.no-media.bg-orange-300.p-2 Medias are not displayed if(displayMedias) each media in oredredItem['object'].attachment include medias.pug