Kategorie_mit_Farbpunkt

This commit is contained in:
ben8
2025-07-04 13:56:32 +02:00
parent d929e6b5dd
commit 37f4a7b868
6 changed files with 102 additions and 7 deletions

View File

@@ -91,6 +91,18 @@
</div>
{% endif %}
{% endif %}
<div class="max-w-6/10 h-max-12 truncate absolute top-4 left-4 bg-white bg-opacity-60 text-white px-4 py-2 rounded-lg shadow-lg ">
<div class="flex items-center gap-2">
<span class="rounded-full w-4 h-4 flex-shrink-0" style="background-color: {{ quiz.category.color }};"></span>
<a class=" text-gray-800 truncate text-sm" title="{{ quiz.category }}" href="{% url 'library:overview_quiz' %}?filter=1&categories={{ quiz.category.id }}">{{ quiz.category }}</a>
</div>
</div>
</div>