From 14a3c117334fc451e92379702d21534475e7d71d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Sun, 20 Aug 2023 22:05:11 +0200 Subject: [PATCH] improve basic list design --- home/templates/home/home_events_page.html | 6 +++--- home/templates/home/home_people_page.html | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/home/templates/home/home_events_page.html b/home/templates/home/home_events_page.html index 43e9f1e..932cba6 100644 --- a/home/templates/home/home_events_page.html +++ b/home/templates/home/home_events_page.html @@ -16,13 +16,13 @@ {% for event in page.events %} <li class="text-gray-500"> <a - class="flex gap-2 flex-wrap" + class="flex flex-col flex-wrap" href="{{ event.url }}" > <div class="underline text-black">{{ event.title }}</div> <div> - ({{ event.date }}{% if event.location %}, - {{ event.location }}{% endif %}) + {{ event.date }}{% if event.location %}, + {{ event.location }}{% endif %} </div> </a> </li> diff --git a/home/templates/home/home_people_page.html b/home/templates/home/home_people_page.html index 057f21c..1994ae9 100644 --- a/home/templates/home/home_people_page.html +++ b/home/templates/home/home_people_page.html @@ -14,11 +14,15 @@ <ul class="flex flex-col gap-2 list-disc ml-3 font-serif"> {% for person in page.people %} - <li> + <li class="flex flex-col"> <a class="underline" href="{{ person.url }}" - >{{ person.full_name }}</a>{% if person.position %}<span class="text-gray-500">, {{ person.inline_position }}{% endif %} + >{{ person.full_name }}</a> + + {% if person.position %} + <span class="text-gray-500">{{ person.inline_position }}</span> + {% endif %} </li> {% endfor %} </ul> -- GitLab