diff --git a/src/lib/components/CommentBox.svelte b/src/lib/components/CommentBox.svelte index f4b9a86..c4ad569 100644 --- a/src/lib/components/CommentBox.svelte +++ b/src/lib/components/CommentBox.svelte @@ -1,24 +1,11 @@ @@ -471,32 +340,70 @@ - {#if showMentionModal} -
-
-

Mention User

+ +
+
{ + if (e.key === 'Enter' && mentionSearch.trim() && !isSearching) { + searchMentions(); + } + }} + class="flex-1 rounded-lg border border-gray-300 bg-gray-50 text-gray-900 text-sm focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500 p-2.5" /> - - {#if mentionLoading} -
Searching...
- {:else if mentionResults.length > 0} -
    + +
+ + {#if mentionLoading} +
Searching...
+ {:else if mentionResults.length > 0} +
+
    {#each mentionResults as profile} - {/each}
- {:else} -
No results
- {/if} -
-
-
+ {:else if mentionSearch.trim()} +
No results found
+ {:else} +
Enter a search term to find users
+ {/if}
- {/if} +
- {#if showWikilinkModal} -
-
-

Insert Wikilink

- - -
- - -
-
+ + + +
+ +
- {/if} +
-
+