|
2 | 2 |
|
3 | 3 | {% if site_icon %} |
4 | 4 | <div class="shrink-0"> |
5 | | - <a href="{% url "admin:index" %}"> |
6 | | - {% if site_icon.light and site_icon.dark %} |
7 | | - <img src="{{ site_icon.dark }}" alt="{% trans 'Home' %}" class="h-8 hidden dark:block"/> |
| 5 | + <{% if site_dropdown %}span{% else %}a href="{% url "admin:index" %}"{% endif %}> |
| 6 | + {% if site_icon.light and site_icon.dark %} |
| 7 | + <img src="{{ site_icon.dark }}" alt="{% trans 'Home' %}" class="h-8 hidden dark:block"/> |
8 | 8 |
|
9 | | - <img src="{{ site_icon.light }}" alt="{% trans 'Home' %}" class="block h-8 dark:hidden" /> |
10 | | - {% else %} |
11 | | - <img src="{{ site_icon }}" class="h-8" alt="{% trans 'Home' %}" /> |
12 | | - {% endif %} |
13 | | - </a> |
| 9 | + <img src="{{ site_icon.light }}" alt="{% trans 'Home' %}" class="block h-8 dark:hidden" /> |
| 10 | + {% else %} |
| 11 | + <img src="{{ site_icon }}" class="h-8" alt="{% trans 'Home' %}" /> |
| 12 | + {% endif %} |
| 13 | + </{% if site_dropdown %}span{% else %}a{% endif %}> |
14 | 14 | </div> |
15 | 15 | {% else %} |
16 | | - <a href="{% url "admin:index" %}" class="bg-primary-600 flex h-8 items-center justify-center rounded text-white text-xs w-8"> |
17 | | - <span class="material-symbols-outlined md-18">{% if site_symbol %}{{ site_symbol }}{% else %}settings{% endif %}</span> |
18 | | - </a> |
| 16 | + <{% if site_dropdown %}span{% else %}a href="{% url "admin:index" %}"{% endif %} class="bg-primary-600 flex h-8 items-center justify-center rounded shrink-0 text-white text-xs w-8"> |
| 17 | + <span class="material-symbols-outlined md-18">{% if site_symbol %}{{ site_symbol }}{% else %}settings{% endif %}</span> |
| 18 | + </{% if site_dropdown %}span{% else %}a{% endif %}> |
19 | 19 | {% endif %} |
20 | 20 |
|
21 | | -<div class="flex flex-col grow min-w-0"> |
22 | | - <div class="text-font-important-light leading-normal tracking-tight dark:text-font-important-dark *:leading-none {% if site_subheader %}xl:text-sm{% else %}xl:text-base{% endif %}"> |
| 21 | +<div class="flex flex-col gap-0.5 grow justify-center min-w-0"> |
| 22 | + <div class="text-font-important-light leading-normal tracking-tight dark:text-font-important-dark *:leading-none *:truncate {% if site_subheader %}xl:text-sm{% else %}xl:text-base{% endif %}"> |
23 | 23 | {{ branding }} |
24 | 24 | </div> |
25 | 25 |
|
26 | 26 | {% if site_subheader %} |
27 | | - <div class="font-normal leading-normal text-font-subtle-light text-xs truncate dark:text-font-subtle-dark"> |
| 27 | + <div class="font-normal text-font-subtle-light text-xs leading-none dark:text-font-subtle-dark"> |
28 | 28 | {{ site_subheader }} |
29 | 29 | </div> |
30 | 30 | {% endif %} |
|
0 commit comments