mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Because the typeahead.js list items are currently just text, a user's full name and avatar should be displayed in `input_pill`. To use `input_pill`, a separate Handlebars partial view was created to provide a mandatory container (`<div class="pill-container">`) for `input_pill` and a flex container (`<div class="search_list_item">`) for vertically aligning the text. The description of each suggestion (i.e `description_html`) is rendered as raw HTML, so every special character (e.g. whitespace) should be HTML-escaped. This enables highlighting the substring in each search suggestion that matches the query. Fixes: #20267
9.0 KiB
9.0 KiB