fix: make breadcrumbs fully truncate on mobile

The last element of the breadcrumb (page title) wasn't truncating.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-01-28 23:20:00 +01:00
parent 733c95b5a7
commit c4f4b43b20
1 changed files with 2 additions and 2 deletions

View File

@ -8,11 +8,11 @@
{{- if $i -}}
<span>/</span>
{{- end -}}
<a href="{{ $e.path }}" class="link whitespace-nowrap overflow-hidden overflow-ellipsis">{{ markdownify $e.title }}</a>
<a href="{{ $e.path }}" class="link truncate">{{ markdownify $e.title }}</a>
{{- end -}}
{{- end -}}
{{- with $scratch.Get "lastsection" -}}
<span>/</span>
<span class="shrink-0">{{ markdownify .title }}</span>
<span class="truncate">{{ markdownify .title }}</span>
{{- end -}}
</nav>