fix: citation view not wrapping in case of many links

Fix #3133
This commit is contained in:
George Cushen 2024-09-07 23:35:07 +01:00
commit edacf1f01f

View file

@ -19,7 +19,7 @@
{{ end }} {{ end }}
{{ if $has_attachments }} {{ if $has_attachments }}
<div class="flex space-x-3"> <div class="flex flex-wrap space-x-3">
{{ partial "page_links" (dict "page" $item "is_list" 1) }} {{ partial "page_links" (dict "page" $item "is_list" 1) }}
</div> </div>
{{ end }} {{ end }}
@ -39,7 +39,7 @@
{{- $item.Date.Format "2006" -}}. {{- $item.Date.Format "2006" -}}.
{{ if $has_attachments }} {{ if $has_attachments }}
<div class="flex space-x-3"> <div class="flex flex-wrap space-x-3">
{{ partial "page_links" (dict "page" $item "is_list" 1) }} {{ partial "page_links" (dict "page" $item "is_list" 1) }}
</div> </div>
{{ end }} {{ end }}