enh: search chat preview

This commit is contained in:
Timothy Jaeryang Baek
2025-07-19 18:06:59 +04:00
parent c94ce71ca3
commit 71ee33bf82
3 changed files with 219 additions and 66 deletions
@@ -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) {