浏览代码

Merge pull request #3205 from Peter-De-Ath/chat-selectors-dark-mode

style: update chat selectors dark mode colors
Timothy Jaeryang Baek 10 月之前
父节点
当前提交
9928114ca8

+ 6 - 6
src/lib/components/chat/MessageInput/Documents.svelte

@@ -107,12 +107,12 @@
 				<div class=" text-lg font-semibold mt-2">#</div>
 				<div class=" text-lg font-semibold mt-2">#</div>
 			</div>
 			</div>
 
 
-			<div class="max-h-60 flex flex-col w-full rounded-r-xl bg-white">
+			<div class="max-h-60 flex flex-col w-full rounded-r-xl bg-white dark:bg-gray-850 dark:text-gray-100 ">
 				<div class="m-1 overflow-y-auto p-1 rounded-r-xl space-y-0.5">
 				<div class="m-1 overflow-y-auto p-1 rounded-r-xl space-y-0.5">
 					{#each filteredItems as doc, docIdx}
 					{#each filteredItems as doc, docIdx}
 						<button
 						<button
 							class=" px-3 py-1.5 rounded-xl w-full text-left {docIdx === selectedIdx
 							class=" px-3 py-1.5 rounded-xl w-full text-left {docIdx === selectedIdx
-								? ' bg-gray-100 selected-command-option-button'
+								? ' bg-gray-100 dark:bg-gray-600 dark:text-gray-100 selected-command-option-button'
 								: ''}"
 								: ''}"
 							type="button"
 							type="button"
 							on:click={() => {
 							on:click={() => {
@@ -126,17 +126,17 @@
 							on:focus={() => {}}
 							on:focus={() => {}}
 						>
 						>
 							{#if doc.type === 'collection'}
 							{#if doc.type === 'collection'}
-								<div class=" font-medium text-black line-clamp-1">
+								<div class=" font-medium text-black dark:text-gray-100 line-clamp-1">
 									{doc?.title ?? `#${doc.name}`}
 									{doc?.title ?? `#${doc.name}`}
 								</div>
 								</div>
 
 
-								<div class=" text-xs text-gray-600 line-clamp-1">{$i18n.t('Collection')}</div>
+								<div class=" text-xs text-gray-600 dark:text-gray-100 line-clamp-1">{$i18n.t('Collection')}</div>
 							{:else}
 							{:else}
-								<div class=" font-medium text-black line-clamp-1">
+								<div class=" font-medium text-black dark:text-gray-100 line-clamp-1">
 									#{doc.name} ({doc.filename})
 									#{doc.name} ({doc.filename})
 								</div>
 								</div>
 
 
-								<div class=" text-xs text-gray-600 line-clamp-1">
+								<div class=" text-xs text-gray-600 dark:text-gray-100 line-clamp-1">
 									{doc.title}
 									{doc.title}
 								</div>
 								</div>
 							{/if}
 							{/if}

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

@@ -139,12 +139,12 @@
 					<div class=" text-lg font-semibold mt-2">@</div>
 					<div class=" text-lg font-semibold mt-2">@</div>
 				</div>
 				</div>
 
 
-				<div class="max-h-60 flex flex-col w-full rounded-r-xl bg-white">
+				<div class="max-h-60 flex flex-col w-full rounded-r-xl bg-white dark:bg-gray-850">
 					<div class="m-1 overflow-y-auto p-1 rounded-r-xl space-y-0.5">
 					<div class="m-1 overflow-y-auto p-1 rounded-r-xl space-y-0.5">
 						{#each filteredModels as model, modelIdx}
 						{#each filteredModels as model, modelIdx}
 							<button
 							<button
 								class=" px-3 py-1.5 rounded-xl w-full text-left {modelIdx === selectedIdx
 								class=" px-3 py-1.5 rounded-xl w-full text-left {modelIdx === selectedIdx
-									? ' bg-gray-100 selected-command-option-button'
+									? ' bg-gray-100 dark:bg-gray-600 selected-command-option-button'
 									: ''}"
 									: ''}"
 								type="button"
 								type="button"
 								on:click={() => {
 								on:click={() => {
@@ -155,7 +155,7 @@
 								}}
 								}}
 								on:focus={() => {}}
 								on:focus={() => {}}
 							>
 							>
-								<div class=" font-medium text-black line-clamp-1">
+								<div class=" font-medium text-black dark:text-gray-100 line-clamp-1">
 									{model.name}
 									{model.name}
 								</div>
 								</div>
 
 

+ 5 - 5
src/lib/components/chat/MessageInput/PromptCommands.svelte

@@ -94,12 +94,12 @@
 				<div class=" text-lg font-semibold mt-2">/</div>
 				<div class=" text-lg font-semibold mt-2">/</div>
 			</div>
 			</div>
 
 
-			<div class="max-h-60 flex flex-col w-full rounded-r-xl bg-white">
+			<div class="max-h-60 flex flex-col w-full rounded-r-xl bg-white dark:bg-gray-850">
 				<div class="m-1 overflow-y-auto p-1 rounded-r-xl space-y-0.5">
 				<div class="m-1 overflow-y-auto p-1 rounded-r-xl space-y-0.5">
 					{#each filteredPromptCommands as command, commandIdx}
 					{#each filteredPromptCommands as command, commandIdx}
 						<button
 						<button
 							class=" px-3 py-1.5 rounded-xl w-full text-left {commandIdx === selectedCommandIdx
 							class=" px-3 py-1.5 rounded-xl w-full text-left {commandIdx === selectedCommandIdx
-								? ' bg-gray-100 selected-command-option-button'
+								? ' bg-gray-100 dark:bg-gray-600 selected-command-option-button'
 								: ''}"
 								: ''}"
 							type="button"
 							type="button"
 							on:click={() => {
 							on:click={() => {
@@ -110,11 +110,11 @@
 							}}
 							}}
 							on:focus={() => {}}
 							on:focus={() => {}}
 						>
 						>
-							<div class=" font-medium text-black">
+							<div class=" font-medium text-black dark:text-gray-100">
 								{command.command}
 								{command.command}
 							</div>
 							</div>
 
 
-							<div class=" text-xs text-gray-600">
+							<div class=" text-xs text-gray-600 dark:text-gray-100">
 								{command.title}
 								{command.title}
 							</div>
 							</div>
 						</button>
 						</button>
@@ -122,7 +122,7 @@
 				</div>
 				</div>
 
 
 				<div
 				<div
-					class=" px-2 pb-1 text-xs text-gray-600 bg-white rounded-br-xl flex items-center space-x-1"
+					class=" px-2 pb-1 text-xs text-gray-600 dark:text-gray-100 bg-white dark:bg-gray-850 rounded-br-xl flex items-center space-x-1"
 				>
 				>
 					<div>
 					<div>
 						<svg
 						<svg