fix flags

This commit is contained in:
ix 2022-02-04 15:43:56 +01:00
parent 993e1fa998
commit 5dc04f888b
2 changed files with 16 additions and 20 deletions

View File

@ -68,9 +68,6 @@ pre {
padding-right: 15px;
padding-left: 15px;
}
.flag_link {
margin-right: 6px;
}
.flag_img {
margin-top: 10px;
width: 28px;

View File

@ -65,8 +65,7 @@
</li>
</ul>
<ul class="navbar-nav ">
<li class="dropdown">
<li class="nav-item dropdown">
{% get_current_language as LANGUAGE_CODE %}
<a class="nav-link" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img class="flag_img" src="{% static "img/"|add:LANGUAGE_CODE|add:".svg" %}" alt="flag {{ LANGUAGE_CODE }}"/>
@ -75,7 +74,7 @@
{% get_available_languages as languages %}
{% for lang_code, lang_name in languages %}
<a class="flag_link dropdown-item" href="{% url 'set_language' lang_code %}?next={{request.path|slice:"3:"}}">
<a class="dropdown-item" href="{% url 'set_language' lang_code %}?next={{request.path|slice:"3:"}}">
<img class="flag_img" src="{% static "img/"|add:lang_code|add:".svg" %}" alt="flag {{ lang_name }}"/>
</a>