autofocus search
This commit is contained in:
parent
5dbd5fbcdf
commit
301a0e8fdf
@ -191,7 +191,7 @@ h2 {
|
|||||||
|
|
||||||
/* Search Input Field Styles */
|
/* Search Input Field Styles */
|
||||||
.fuzzysearch {
|
.fuzzysearch {
|
||||||
margin: 0 auto;
|
margin: 10px auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
max-width: var(--page-max-width);
|
max-width: var(--page-max-width);
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,8 @@ function applyFuzzySearch(linksData) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
searchInput.scrollIntoView({ behavior: 'auto', block: 'start' });
|
||||||
|
|
||||||
const allLinks = linksData.links;
|
const allLinks = linksData.links;
|
||||||
const scores = allLinks.map(link => ({
|
const scores = allLinks.map(link => ({
|
||||||
link: link,
|
link: link,
|
||||||
|
Loading…
Reference in New Issue
Block a user