mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 04:05:42 +01:00
ui(wiki): fix search result overflow for long lines
This commit is contained in:
parent
4e578934ab
commit
0a30f00263
2 changed files with 6 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
{{if .Results}}
|
||||
{{range .Results}}
|
||||
<a class="item" href="{{$.RepoLink}}/wiki/{{.Filename}}">
|
||||
<b class="tw-block tw-mb-2">{{.Filename}}</b>
|
||||
<a class="item tw-max-w-[80vw]" href="{{$.RepoLink}}/wiki/{{.Filename}}">
|
||||
<b class="tw-block tw-mb-2 tw-whitespace-break-spaces">{{.Filename}}</b>
|
||||
{{range .LineCodes}}
|
||||
<p class="tw-my-0">{{.}}</p>
|
||||
<p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p>
|
||||
{{end}}
|
||||
</a>
|
||||
{{end}}
|
||||
|
|
|
@ -28,16 +28,16 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clone-panel ui action small input">
|
||||
<div class="clone-panel ui action small input tw-ml-auto">
|
||||
{{template "repo/clone_buttons" .}}
|
||||
{{template "repo/clone_script" .}}
|
||||
</div>
|
||||
<div class="ui floating dropdown jump">
|
||||
<div class="ui floating dropdown jump tw-ml-auto">
|
||||
<div class="ui icon search input">
|
||||
<i class="icon">{{svg "octicon-search"}}</i>
|
||||
<input type="search" name="q" hx-get="{{$.RepoLink}}/wiki/search" hx-target="#wiki-search" hx-swap="innerHTML" hx-trigger="keyup changed delay:.5s" placeholder="{{ctx.Locale.Tr "repo.wiki.search"}}..." />
|
||||
</div>
|
||||
<div id="wiki-search" class="menu tw-absolute tw-mt-3 tw-rounded right">
|
||||
<div id="wiki-search" class="menu tw-absolute tw-max-h-[65dvh] tw-overflow-y-auto tw-mt-3 tw-rounded left">
|
||||
<div class="item muted">{{ctx.Locale.Tr "repo.wiki.no_search_results"}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue