mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-07 06:05:34 +00:00
Tweak the search snippet size
This commit is contained in:
parent
7ac1437c8a
commit
914202e45b
2 changed files with 5 additions and 1 deletions
|
@ -404,7 +404,7 @@ def docs_search(request):
|
||||||
return render(request, "front/docs_search.html", ctx)
|
return render(request, "front/docs_search.html", ctx)
|
||||||
|
|
||||||
query = """
|
query = """
|
||||||
SELECT slug, title, snippet(docs, 2, '<span>', '</span>', '…', 50)
|
SELECT slug, title, snippet(docs, 2, '<span>', '</span>', '…', 10)
|
||||||
FROM docs
|
FROM docs
|
||||||
WHERE docs MATCH ?
|
WHERE docs MATCH ?
|
||||||
ORDER BY bm25(docs, 2.0, 10.0, 1.0)
|
ORDER BY bm25(docs, 2.0, 10.0, 1.0)
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#search-results li {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
#search-results li span {
|
#search-results li span {
|
||||||
background: #ffef82;
|
background: #ffef82;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
|
Loading…
Add table
Reference in a new issue