فهرست منبع

refac: design

thanks @jannikstdl for nudging me to redesign 🙌

Co-Authored-By: Jannik S. <jannik@streidl.dev>
Timothy Jaeryang Baek 2 ماه پیش
والد
کامیت
454294a101
1فایلهای تغییر یافته به همراه19 افزوده شده و 3 حذف شده
  1. 19 3
      src/lib/components/chat/MessageInput.svelte

+ 19 - 3
src/lib/components/chat/MessageInput.svelte

@@ -390,7 +390,7 @@
 				</div>
 				</div>
 
 
 				<div class="w-full relative">
 				<div class="w-full relative">
-					{#if atSelectedModel !== undefined || selectedToolIds.length > 0 || imageGenerationEnabled || codeInterpreterEnabled}
+					{#if atSelectedModel !== undefined || selectedToolIds.length > 0 || webSearchEnabled || imageGenerationEnabled || codeInterpreterEnabled}
 						<div
 						<div
 							class="px-3 pb-0.5 pt-1.5 text-left w-full flex flex-col absolute bottom-0 left-0 right-0 bg-gradient-to-t from-white dark:from-gray-900 z-10"
 							class="px-3 pb-0.5 pt-1.5 text-left w-full flex flex-col absolute bottom-0 left-0 right-0 bg-gradient-to-t from-white dark:from-gray-900 z-10"
 						>
 						>
@@ -426,6 +426,22 @@
 								</div>
 								</div>
 							{/if}
 							{/if}
 
 
+							{#if webSearchEnabled}
+								<div class="flex items-center justify-between w-full">
+									<div class="flex items-center gap-2.5 text-sm dark:text-gray-500">
+										<div class="pl-1">
+											<span class="relative flex size-2">
+												<span
+													class="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"
+												/>
+												<span class="relative inline-flex rounded-full size-2 bg-blue-500" />
+											</span>
+										</div>
+										<div class=" translate-y-[0.5px]">{$i18n.t('Search the internet')}</div>
+									</div>
+								</div>
+							{/if}
+
 							{#if imageGenerationEnabled}
 							{#if imageGenerationEnabled}
 								<div class="flex items-center justify-between w-full">
 								<div class="flex items-center justify-between w-full">
 									<div class="flex items-center gap-2.5 text-sm dark:text-gray-500">
 									<div class="flex items-center gap-2.5 text-sm dark:text-gray-500">
@@ -448,9 +464,9 @@
 										<div class="pl-1">
 										<div class="pl-1">
 											<span class="relative flex size-2">
 											<span class="relative flex size-2">
 												<span
 												<span
-													class="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"
+													class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"
 												/>
 												/>
-												<span class="relative inline-flex rounded-full size-2 bg-blue-500" />
+												<span class="relative inline-flex rounded-full size-2 bg-green-500" />
 											</span>
 											</span>
 										</div>
 										</div>
 										<div class=" translate-y-[0.5px]">{$i18n.t('Code interpreter')}</div>
 										<div class=" translate-y-[0.5px]">{$i18n.t('Code interpreter')}</div>