Merge pull request #19214 from dvdksn/fix-horizontal-overflow

fix horizontal overflow
This commit is contained in:
David Karlsson 2024-01-25 21:28:32 +01:00 committed by GitHub
commit aa98f3f975
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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>