Skip to content

Commit 2538943

Browse files
authored
fix: header breadcrumbs alignment (#1491)
1 parent 492cad5 commit 2538943

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
{% for part in parts %}
2-
{% if part.link %}
3-
<a href="{{ part.link }}" class="tracking-tight">
4-
{{ part.title|capfirst }}
5-
</a>
6-
{% else %}
7-
<span class="tracking-tight">
8-
{{ part.title|capfirst }}
9-
</span>
10-
{% endif %}
1+
{% spaceless %}
2+
{% for part in parts %}
3+
<{% if part.link %}a href="{{ part.link }}"{% else %}span{% endif %} class="align-middle inline-block leading-5 tracking-tight">
4+
{{ part.title|capfirst }}
5+
</{% if part.link %}a{% else %}span{% endif %} >
116

12-
{% if not forloop.last %}
13-
<span class="mx-3 text-base-200 text-sm dark:text-base-600">/</span>
14-
{% endif %}
15-
{% endfor %}
7+
{% if not forloop.last %}
8+
<span class="material-symbols-outlined inline-block align-middle leading-5 mx-2 text-base-400 dark:text-base-500">chevron_right</span>
9+
{% endif %}
10+
{% endfor %}
11+
{% endspaceless %}

src/unfold/templates/unfold/helpers/welcomemsg.html

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@
1717

1818
{% include "unfold/helpers/header_back_button.html" %}
1919

20-
<h1 class="overflow-hidden flex flex-row text-ellipsis items-center text-sm whitespace-nowrap xl:text-base text-font-important-light dark:text-font-important-dark">
20+
<h1 class="overflow-hidden leading-5 text-ellipsis text-font-important-light whitespace-nowrap xl:text-base dark:text-font-important-dark">
2121
{% header_title %}
2222

23-
{% if content_title %}
24-
{% if cl and cl.full_result_count != cl.result_count and cl.paginator|class_name != "InfinitePaginator" %}
25-
<span class="font-medium ml-2 text-font-subtle-light text-sm dark:text-font-subtle-dark">
26-
{% blocktranslate count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktranslate %} (<a href="?{% if cl.is_popup %}_popup=1{% endif %}">{% if cl.show_full_result_count %}{% blocktranslate with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktranslate %}{% else %}{% translate "Show all" %}{% endif %}</a>)
27-
</span>
28-
{% endif %}
29-
{% else %}
30-
{% translate 'Welcome,' %} <strong>{% firstof user.get_short_name user.get_username %}</strong>.
23+
{% if cl and cl.full_result_count != cl.result_count and cl.paginator|class_name != "InfinitePaginator" %}
24+
<span class="font-medium ml-2 text-font-subtle-light text-sm dark:text-font-subtle-dark">
25+
{% blocktranslate count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktranslate %} (<a href="?{% if cl.is_popup %}_popup=1{% endif %}">{% if cl.show_full_result_count %}{% blocktranslate with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktranslate %}{% else %}{% translate "Show all" %}{% endif %}</a>)
26+
</span>
3127
{% endif %}
3228
</h1>
3329
</div>

0 commit comments

Comments
 (0)