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
55823143
Unverified
Commit
55823143
authored
Nov 09, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Nov 09, 2023
Browse files
Merge pull request #84 from ollama-webui/dev
fix: select options text
parents
3fe2f408
4b2ecf5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/routes/+page.svelte
src/routes/+page.svelte
+4
-5
tailwind.config.js
tailwind.config.js
+1
-1
No files found.
src/routes/+page.svelte
View file @
55823143
...
@@ -40,8 +40,7 @@
...
@@ -40,8 +40,7 @@
let
suggestions
=
''
;
// $page.url.searchParams.get('suggestions');
let
suggestions
=
''
;
// $page.url.searchParams.get('suggestions');
onMount
(
async
()
=>
{
onMount
(
async
()
=>
{
await
createNewChat
(
true
);
await
Promise
.
all
([
await
createNewChat
(
true
),
await
setDBandLoadChats
()]);
await
setDBandLoadChats
();
});
});
//////////////////////////
//////////////////////////
...
@@ -804,17 +803,17 @@
...
@@ -804,17 +803,17 @@
<div
class=
"flex justify-between my-2 text-sm"
>
<div
class=
"flex justify-between my-2 text-sm"
>
<select
<select
id=
"models"
id=
"models"
class=
"outline-none bg-transparent text-lg font-semibold rounded-lg block w-full placeholder-gray-
4
00"
class=
"outline-none bg-transparent text-lg font-semibold rounded-lg block w-full placeholder-gray-
8
00"
bind:value=
{selectedModel}
bind:value=
{selectedModel}
disabled=
{messages.length
!=
0}
disabled=
{messages.length
!=
0}
>
>
<option
value=
""
selected
>
Select a model
</option>
<option
class=
" text-gray-700"
value=
""
selected
>
Select a model
</option>
{#each models as model}
{#each models as model}
{#if model.name === 'hr'}
{#if model.name === 'hr'}
<hr
/>
<hr
/>
{:else}
{:else}
<option
value=
{model.name}
class=
" text-lg"
>
{model.name}
</option>
<option
value=
{model.name}
class=
"
text-gray-700
text-lg"
>
{model.name}
</option>
{/if}
{/if}
{/each}
{/each}
</select>
</select>
...
...
tailwind.config.js
View file @
55823143
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
500
:
'
#8e8ea0
'
,
500
:
'
#8e8ea0
'
,
600
:
'
#565869
'
,
600
:
'
#565869
'
,
700
:
'
#40414f
'
,
700
:
'
#40414f
'
,
800
:
'
#3
4
35
41
'
,
800
:
'
#3
3
35
3E
'
,
900
:
'
#202123
'
,
900
:
'
#202123
'
,
950
:
'
#050509
'
950
:
'
#050509
'
}
}
...
...
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