From d3a5b9c127fa6728dd762b4fc9fd5163c76eba25 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 15 Jan 2025 23:39:29 -0800 Subject: [PATCH] refac: styling --- src/lib/components/chat/MessageInput.svelte | 22 ++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 44a32ce3e..40eaaf718 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -385,7 +385,7 @@
- {#if atSelectedModel !== undefined || selectedToolIds.length > 0 || webSearchEnabled} + {#if atSelectedModel !== undefined || selectedToolIds.length > 0 || webSearchEnabled || imageGenerationEnabled}
@@ -400,7 +400,7 @@
-
+
{#each selectedToolIds.map((id) => { return $tools ? $tools.find((t) => t.id === id) : { id: id, name: id }; }) as tool, toolIdx (toolIdx)} @@ -421,6 +421,22 @@
{/if} + {#if imageGenerationEnabled} +
+
+
+ + + + +
+
{$i18n.t('Image generation')}
+
+
+ {/if} + {#if webSearchEnabled}
@@ -432,7 +448,7 @@
-
{$i18n.t('Search the web')}
+
{$i18n.t('Search the web')}
{/if}