From c104f939606018ba1e8101f6084bf0d82413f0b6 Mon Sep 17 00:00:00 2001
From: Ayo Ayco
Date: Sat, 18 Jan 2025 22:24:32 +0100
Subject: [PATCH] style: hashtag pills
---
templates/tag.html | 28 +++++++++++-----------------
templates/tags.html | 8 ++++++++
templates/threads.html | 29 ++++++++++++++---------------
3 files changed, 33 insertions(+), 32 deletions(-)
create mode 100644 templates/tags.html
diff --git a/templates/tag.html b/templates/tag.html
index f6a69b5..f2c212f 100644
--- a/templates/tag.html
+++ b/templates/tag.html
@@ -93,12 +93,11 @@
}
}
- .pill,
- .hashtag {
+ .pill {
border-radius: 2em;
background-color: rgba(197, 209, 222, 0.25);
- margin: 0 0.5em 0.5em 0;
- padding: 1em;
+ margin-bottom: 0.5em;
+ padding: 0.5em 1em;
display: inline-block;
font-size: var(--font-size-sm);
color: var(--text-color-dark);
@@ -285,8 +284,7 @@
}
}
- .pill,
- .hashtag {
+ .pill {
background-color: rgba(0, 0, 0, 0.15);
color: var(--text-color-light-faded);
@@ -307,25 +305,20 @@
{% if tags is defined%}
-
+ {% with tags=tags %}
+ {% include "tags.html" %}
+ {% endwith %}
{% endif %}
{% for thread in threads %}
- {% with is_tag=tag!=None, thread=thread, parent_id=thread.id, is_thread=threads|length > 1 %}
+ {% with is_tag=tag!=None, thread=thread, parent_id=thread.id, is_thread=threads|length > 1, server=app.server %}
{% include "card.html" %}
{% endwith %}
{% if thread.descendants is defined %}
{% for descendant in thread.descendants %}
- {% with is_tag=tag!=None, thread=descendant, parent_id=thread.id %}
+ {% with is_tag=tag!=None, thread=descendant, parent_id=thread.id, server=app.server%}
{% include "card.html" %}
{% endwith %}
{% endfor %}
@@ -348,7 +341,8 @@
Rendered on {{ render_date }} in Europe/Amsterdam
-
+