taxonomy: avoid column break on multiline items #705

This commit is contained in:
Sören Weber 2023-10-30 00:20:12 +01:00
parent 1eb3bf3159
commit 3a02431a60
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 5 additions and 1 deletions

View file

@ -33,7 +33,7 @@
{{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }} {{- if (ne .Page.Site.Params.disableTermBreadcrumbs true) }}
{{- $breadcrumb = (trim ((partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ") }} {{- $breadcrumb = (trim ((partial "breadcrumbs.html" (dict "page" .Page "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ") }}
{{- end }} {{- end }}
<li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a>{{ with $breadcrumb }}<br><div class="breadcrumbs highlightable">{{ . }}</div>{{ end }}</li> <li><a href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Page) }}">{{ .Title }}</a>{{ with $breadcrumb }}<div class="breadcrumbs highlightable">{{ . }}</div>{{ end }}</li>
{{- $lastCapital = $capital }} {{- $lastCapital = $capital }}
{{- end }} {{- end }}
{{- if ne $lastCapital "" }} {{- if ne $lastCapital "" }}

View file

@ -2071,6 +2071,10 @@ html[dir="rtl"] #R-sidebar ul.collapsible-menu > li > label > i.fa-chevron-right
} }
} }
.columnize > *{
break-inside: avoid-column;
}
.columnize .breadcrumbs{ .columnize .breadcrumbs{
font-size: .859625rem; font-size: .859625rem;
} }