Open lukasjuhrich opened 4 years ago
Quick mockup to get a feeling:
Content:
<span class="aa-dropdown-menu aa-with-users" role="listbox" id="algolia-autocomplete-listbox-0" style="position: absolute; top: 100%; left: 0px; z-index: 100; right: auto;"><div class="aa-dataset-users">
<a style="display:block" href="/user/search">To advanced search</a>
<div class="result">
<div display="flex">Lukas <strong>Juhr</strong>ich <em class="text-secondary"><small>#12345</small></em></div>
<div><code>lukas<strong>juhr</strong>ich</code></div>
</div>
</div></span>
.aa-dropdown-menu > div {
padding: 0.375rem 0.75rem;
}
.result > :not(:first-child) {
margin-left: 1em;
}
Follow-up to #299
A good example could be the BS5 docs. Also, one should take a look at the algolia showcase.
Random idea: If one would add e.g. the feature of returning an address, one could add icons in front of the rows to signify the result type. But that's clearly a stretch goal.
There are a lot of things that can be improved with the search UI which would allow one to search way more efficiently:
Rationale:
watcherknight
and typekn
, other names such asThomas Knecht
or similar may come up. However, since the username has a deterministic position, my brain will automatically filter out the match where this visual anchor (the boldkn
portion) is not in the username.The rest should be self-explanatory.