enh: search chat preview
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
</div>
|
||||
|
||||
<input
|
||||
id="search-input"
|
||||
class="w-full rounded-r-xl py-1.5 pl-2.5 text-sm bg-transparent dark:text-gray-300 outline-hidden"
|
||||
placeholder={placeholder ? placeholder : $i18n.t('Search')}
|
||||
bind:value
|
||||
@@ -106,6 +107,9 @@
|
||||
focused = true;
|
||||
initTags();
|
||||
}}
|
||||
on:blur={() => {
|
||||
focused = false;
|
||||
}}
|
||||
on:keydown={(e) => {
|
||||
if (e.key === 'Enter') {
|
||||
if (filteredTags.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user