Cap wiki search width at 80% container width

Co-Authored-By: Zuzana Slavíková <zuza.slavik@email.cz>
This commit is contained in:
Oto Šťáva 2024-11-24 17:41:14 +01:00
parent c0777279fe
commit 767467b9ae
No known key found for this signature in database
GPG key ID: 32B22D20C9B4E680

View file

@ -1,6 +1,6 @@
{{if .Results}}
{{range .Results}}
<a class="item tw-max-w-[min(80vw,var(--container-width))]" href="{{$.RepoLink}}/wiki/{{.Filename}}">
<a class="item tw-max-w-[min(80vw,calc(0.8*var(--container-width)))]" href="{{$.RepoLink}}/wiki/{{.Filename}}">
<b class="tw-block tw-mb-2 tw-whitespace-break-spaces">{{.Title}}</b>
{{range .LineCodes}}
<p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p>