0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-03 04:15:29 +00:00

Tweak the search snippet size

This commit is contained in:
Pēteris Caune 2022-08-22 13:02:58 +03:00
parent 7ac1437c8a
commit 914202e45b
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
2 changed files with 5 additions and 1 deletions
hc/front
static/css

View file

@ -404,7 +404,7 @@ def docs_search(request):
return render(request, "front/docs_search.html", ctx)
query = """
SELECT slug, title, snippet(docs, 2, '<span>', '</span>', '&hellip;', 50)
SELECT slug, title, snippet(docs, 2, '<span>', '</span>', '&hellip;', 10)
FROM docs
WHERE docs MATCH ?
ORDER BY bm25(docs, 2.0, 10.0, 1.0)

View file

@ -16,6 +16,10 @@
display: none;
}
#search-results li {
margin-bottom: 15px;
}
#search-results li span {
background: #ffef82;
border-radius: 2px;