From 6096acce8b922af98e6846a687fcfd19cf0370cc Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 15 Jun 2021 23:34:36 +0000 Subject: make tags less annoying to look at on small screens (i think) --- apioforum/static/style.css | 6 +++++- apioforum/templates/view_forum.html | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 66f7faa..935bde1 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -95,6 +95,8 @@ nav .links { display: flex; } border-bottom: 1px solid black; } + .only-small { display: none !important } + } @@ -102,7 +104,7 @@ nav .links { display: flex; } @media not all and (min-width: 800px) { .threadlisting { display: grid; - grid-template-columns: repeat(6,1fr); + grid-template-columns: repeat(5,1fr); margin-bottom: 5px; } .threadlisting-part-title { @@ -116,6 +118,8 @@ nav .links { display: flex; } border-right: 1px solid black; border-bottom: 1px solid black; } + + .only-big { display: none !important } } diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 6958c20..22f24c1 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -13,9 +13,9 @@
- name + name & tags
-
+
tags
@@ -36,8 +36,16 @@
{%for thread in threads%}
- -
+
{{thread.title}} + {% if thread_tags[thread.id]|length > 0 %} + + {% for the_tag in thread_tags[thread.id] %} + {{tag(the_tag)}} + {% endfor %} + + {%endif%} +
+
{% for the_tag in thread_tags[thread.id] %} {{tag(the_tag)}} {% endfor %} -- cgit v1.2.3