Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
ee279b79
Commit
ee279b79
authored
Jun 16, 2024
by
Peter De-Ath
Browse files
enh: update dark mode colors on chat selectors
parent
1275371e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/lib/components/chat/MessageInput/Documents.svelte
src/lib/components/chat/MessageInput/Documents.svelte
+6
-6
src/lib/components/chat/MessageInput/PromptCommands.svelte
src/lib/components/chat/MessageInput/PromptCommands.svelte
+5
-5
No files found.
src/lib/components/chat/MessageInput/Documents.svelte
View file @
ee279b79
...
...
@@ -107,12 +107,12 @@
<div class=" text-lg font-semibold mt-2">#</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">
{#each filteredItems as doc, docIdx}
<button
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"
on:click={() => {
...
...
@@ -126,17 +126,17 @@
on:focus={() => {}}
>
{#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}`}
</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}
<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})
</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}
</div>
{/if}
...
...
src/lib/components/chat/MessageInput/PromptCommands.svelte
View file @
ee279b79
...
...
@@ -94,12 +94,12 @@
<div class=" text-lg font-semibold mt-2">/</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">
{#each filteredPromptCommands as command, commandIdx}
<button
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"
on:click={() => {
...
...
@@ -110,11 +110,11 @@
}}
on:focus={() => {}}
>
<div class=" font-medium text-black">
<div class=" font-medium text-black
dark:text-gray-100
">
{command.command}
</div>
<div class=" text-xs text-gray-600">
<div class=" text-xs text-gray-600
dark:text-gray-100
">
{command.title}
</div>
</button>
...
...
@@ -122,7 +122,7 @@
</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>
<svg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment