search: First iteration of "did you mean"
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: fkling
Simple implementation of "did you mean" for language suggestions. The suggestions will show up if the query consists of 2 or 3 terms, no filters and the first term is a language name (happy to adapt those rules to unlimited terms).
I mostly followed https://www.figma.com/file/VV1k7NWYaORzrBvUJzogHl/ with some some small adjustments:
Note: I also made some changes to SearchResultsInfoBar.tsx
so that the buttons would line up properly if there are no search results (see last screenshot).
No results
Some results
Dark mode
Small screen
Misaligned if I didn't add the nav-item
classes to the info bar
Push commits to the source branch or add previously merged commits to review them.