mirror of https://github.com/docker/docs.git
Merge pull request #19214 from dvdksn/fix-horizontal-overflow
fix horizontal overflow
This commit is contained in:
commit
aa98f3f975
|
@ -13,7 +13,7 @@
|
|||
{{ block "left" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="p-6 pt-0">
|
||||
<div class="p-6 pt-0 md:w-screen overflow-clip">
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
{{ $ctx := . }}
|
||||
|
||||
|
||||
<nav id="breadcrumbs" class="py-4 gap-4 flex items-center overflow-hidden text-gray-light dark:text-gray-dark">
|
||||
<nav id="breadcrumbs" class="py-4 gap-4 flex items-center text-gray-light dark:text-gray-dark max-w-full min-w-0">
|
||||
{{ with ($scratch.GetSortedMapValues "sections") }}
|
||||
{{ range $i, $e := . }}
|
||||
{{- if $i -}}
|
||||
<span>/</span>
|
||||
{{- end -}}
|
||||
<a href="{{ $e.path }}" class="flex items-center gap-2 link whitespace-nowrap">{{ markdownify $e.title }}</a>
|
||||
<a href="{{ $e.path }}" class="link whitespace-nowrap overflow-hidden overflow-ellipsis">{{ markdownify $e.title }}</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- with $scratch.Get "lastsection" -}}
|
||||
<span>/</span>
|
||||
<span class="flex items-center gap-2">{{ markdownify .title }}</span>
|
||||
<span class="shrink-0">{{ markdownify .title }}</span>
|
||||
{{- end -}}
|
||||
</nav>
|
||||
|
|
Loading…
Reference in New Issue