Browse Source

refac: styling

Timothy Jaeryang Baek 4 tháng trước cách đây
mục cha
commit
fe69189dc9

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -2085,7 +2085,7 @@
 								</div>
 							</div>
 
-							<div class=" pb-[1rem]">
+							<div class=" pb-2">
 								<MessageInput
 									{history}
 									{taskIds}

+ 12 - 1
src/lib/components/chat/MessageInput.svelte

@@ -1,5 +1,8 @@
 <script lang="ts">
+	import DOMPurify from 'dompurify';
+
 	import { toast } from 'svelte-sonner';
+
 	import { v4 as uuidv4 } from 'uuid';
 	import { createPicker, getAuthToken } from '$lib/utils/google-drive-picker';
 	import { pickAndDownloadFile } from '$lib/utils/onedrive-file-picker';
@@ -595,7 +598,7 @@
 						/>
 					{:else}
 						<form
-							class="w-full flex gap-1.5"
+							class="w-full flex flex-col gap-1.5"
 							on:submit|preventDefault={() => {
 								// check if selectedModels support image input
 								dispatch('submit', prompt);
@@ -1520,6 +1523,14 @@
 									</div>
 								</div>
 							</div>
+
+							{#if $config?.license_metadata?.input_footer}
+								<div class=" text-xs text-gray-500 text-center line-clamp-1">
+									{@html DOMPurify.sanitize($config?.license_metadata?.input_footer)}
+								</div>
+							{:else}
+								<div class="mb-1" />
+							{/if}
 						</form>
 					{/if}
 				</div>