From 9959fc95a2d7298a35fab06a42db30152f24301f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 1 Nov 2026 12:31:11 +0900 Subject: [PATCH] refac --- .../channel/MessageInput/MentionList.svelte | 8 +- .../MessageInput/Commands/AtCommands.svelte | 4 +- .../chat/MessageInput/Commands/Emojis.svelte | 24 +++-- .../MessageInput/Commands/Knowledge.svelte | 6 +- .../chat/MessageInput/Commands/Skills.svelte | 2 +- .../Commands/SlashCommands.svelte | 102 +++++++++--------- 6 files changed, 76 insertions(+), 70 deletions(-) diff --git a/src/lib/components/channel/MessageInput/MentionList.svelte b/src/lib/components/channel/MessageInput/MentionList.svelte index e50df19e95..fd4fcef696 100644 --- a/src/lib/components/channel/MessageInput/MentionList.svelte +++ b/src/lib/components/channel/MessageInput/MentionList.svelte @@ -229,7 +229,7 @@ on:mousemove={() => { selectedIndex = i; }} - class="flex h-6 w-full items-center gap-2 rounded-xl px-2 text-left text-xs transition-colors duration-75 hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {i === + class="flex h-6 w-full items-center gap-2 rounded-xl px-2 text-left text-[0.8125rem] transition-colors duration-75 hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {i === selectedIndex ? 'app-interactive-active selected-command-option-button' : ''}" @@ -250,7 +250,11 @@ allowExternal className="size-4 shrink-0 rounded-sm!" /> - {:else}{/if} + {:else} +
+ +
+ {/if} {:else if item.type === 'model'} {:else if webUploadEnabled && query.startsWith('http')} @@ -394,8 +394,8 @@ {:else if item.data.id === 'skills:create'} @@ -430,8 +430,8 @@ @@ -456,8 +456,8 @@ @@ -482,7 +482,7 @@ {/if} {#if filteredPrompts.length > 0} -
+
{$i18n.t('Prompts')}
@@ -490,9 +490,9 @@ {@const itemIdx = commandItems.length + promptIdx} @@ -517,7 +517,7 @@ {/if} {#if skills.length > 0} -
+
{$i18n.t('Skills')}
@@ -530,9 +530,9 @@ tippyOptions={{ maxWidth: '20rem' }} >