From d7b4f9690d5d485c5f65a1d4035f46a0130dc5e7 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 18 May 2024 07:24:45 +0200 Subject: [PATCH] perf: implement hide/show of links in CSS instead of SSR --- templates/threads.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/threads.html b/templates/threads.html index 5ff6e37..295b772 100644 --- a/templates/threads.html +++ b/templates/threads.html @@ -39,6 +39,13 @@ } } + main.home { + & .back, + & .top { + display: none + } + } + ul { list-style: none; } @@ -227,12 +234,10 @@

{{ app.title }}

{{ app.description }}

-
- {% if threads|length == 1 and threads[0].descendants %} +
- {% endif %}
    {% for thread in threads %} @@ -392,9 +397,7 @@ {% endfor %}
- {% if threads|length == 1 and threads[0].descendants|length > 1%} Top - {% endif %}