1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

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 c98bd3a11d
commit fe6f4fde20
No known key found for this signature in database
GPG key ID: 32B22D20C9B4E680

View file

@ -1,6 +1,6 @@
{{if .Results}} {{if .Results}}
{{range .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> <b class="tw-block tw-mb-2 tw-whitespace-break-spaces">{{.Title}}</b>
{{range .LineCodes}} {{range .LineCodes}}
<p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p> <p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p>