mirror of https://github.com/docker/docs.git
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:
parent
733c95b5a7
commit
c4f4b43b20
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue