fix(header.html): make language switcher always on top

This commit is contained in:
2026-03-16 12:35:58 +01:00
parent 600283a084
commit 4e4774081e

View File

@@ -15,7 +15,7 @@
<form action="{% url 'set_language' %}" method="post">
{% csrf_token %}
<button type="button" class="hover:underline focus:outline-none">{% get_current_language as LANGUAGE_CODE %}{{ LANGUAGE_CODE|upper }}</button>
<div class="absolute right-0 w-32 bg-white text-black rounded-md shadow-lg hidden group-hover:block">
<div class="absolute right-0 w-32 bg-white text-black rounded-md shadow-lg hidden group-hover:block z-10">
{% get_available_languages as LANGUAGES %}
{% for lang_code, lang_name in LANGUAGES %}
<button name="language" value="{{ lang_code }}" class="block w-full text-left rounded-md px-4 py-2 hover:bg-gray-200">{{ lang_name }}</button>