From 3a977a94ca1548ff599a2b7373c6e3884fc9cb3f Mon Sep 17 00:00:00 2001 From: Jeremy Salwen Date: Sat, 28 Jan 2023 14:16:49 -0500 Subject: [PATCH] Fix issues with Search page impelementation - Makes the autocomplete results highlight with up/down arrows. - Allows you to unselect autocomplete results by using arrow keys. - Fixed a bug in previous commits where enter did not take you to autocomplete result. - Return now goes to the search page if no autocomplete result is selected. - Search results table now properly wraps. (It would be nice to make it wider but I wasn't able to). - Fixed a bug in the previous commit where docs were not showing, due to failure to copy a modified js file. --- DocGen4/Output/Search.lean | 1 - DocGen4/Output/Template.lean | 2 +- static/declaration-data.js | 1 + static/search.js | 6 +++--- static/style.css | 22 ++++++++-------------- 5 files changed, 13 insertions(+), 19 deletions(-) diff --git a/DocGen4/Output/Search.lean b/DocGen4/Output/Search.lean index b748c7e..6a40f92 100644 --- a/DocGen4/Output/Search.lean +++ b/DocGen4/Output/Search.lean @@ -14,7 +14,6 @@ open scoped DocGen4.Jsx def search : BaseHtmlM Html := do templateExtends (baseHtml "Search") <| pure <|
-

Search Results