diff --git a/docs/assets/plugins/search/search.css b/docs/assets/plugins/search/search.css index 366888e7..a4c3570b 100644 --- a/docs/assets/plugins/search/search.css +++ b/docs/assets/plugins/search/search.css @@ -153,7 +153,7 @@ body.site-search-visible { border-top: solid 1px rgb(var(--sl-color-neutral-200)); border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; - padding: var(--sl-spacing-small); + padding: var(--sl-spacing-x-small); } .site-search__footer small { diff --git a/docs/assets/plugins/search/search.js b/docs/assets/plugins/search/search.js index fb897d1b..4ebc509f 100644 --- a/docs/assets/plugins/search/search.js +++ b/docs/assets/plugins/search/search.js @@ -59,7 +59,9 @@ placeholder="Search this site" size="large" clearable - > + > + +
@@ -219,7 +221,7 @@ await searchIndex; const hasQuery = query.length > 0; - const matches = hasQuery ? searchIndex.search(query) : []; + const matches = hasQuery ? searchIndex.search(`${query}~2`) : []; let hasResults = hasQuery && matches.length > 0; siteSearch.classList.toggle('site-search--has-results', hasQuery && hasResults);