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
8942d0d0
Commit
8942d0d0
authored
Jul 08, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
eb1e176f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
27 deletions
+29
-27
src/lib/components/admin/Settings.svelte
src/lib/components/admin/Settings.svelte
+22
-22
src/lib/components/admin/Settings/Interface.svelte
src/lib/components/admin/Settings/Interface.svelte
+7
-5
No files found.
src/lib/components/admin/Settings.svelte
View file @
8942d0d0
...
...
@@ -44,8 +44,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 lg:flex-none flex text-right transition {selectedTab ===
'general'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'general';
}}
...
...
@@ -70,8 +70,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'users'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'users';
}}
...
...
@@ -94,8 +94,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'connections'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'connections';
}}
...
...
@@ -118,8 +118,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'models'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'models';
}}
...
...
@@ -144,8 +144,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'documents'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'documents';
}}
...
...
@@ -174,8 +174,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'web'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'web';
}}
...
...
@@ -198,8 +198,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'interface'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'interface';
}}
...
...
@@ -224,8 +224,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'audio'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'audio';
}}
...
...
@@ -251,8 +251,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'images'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'images';
}}
...
...
@@ -277,8 +277,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'pipelines'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'pipelines';
}}
...
...
@@ -307,8 +307,8 @@
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'db'
? 'bg-gray-
2
00 dark:bg-gray-800'
: ' hover:bg-gray-
30
0 dark:hover:bg-gray-850'}"
? 'bg-gray-
1
00 dark:bg-gray-800'
: ' hover:bg-gray-
5
0 dark:hover:bg-gray-850'}"
on:click={() => {
selectedTab = 'db';
}}
...
...
src/lib/components/admin/Settings/Interface.svelte
View file @
8942d0d0
...
...
@@ -273,24 +273,26 @@
</div>
<div class="grid lg:grid-cols-2 flex-col gap-1.5">
{#each promptSuggestions as prompt, promptIdx}
<div class=" flex dark:bg-gray-850 rounded-xl py-1.5">
<div
class=" flex border border-gray-100 dark:border-none dark:bg-gray-850 rounded-xl py-1.5"
>
<div class="flex flex-col flex-1 pl-1">
<div class="flex border-b dark:border-gray-800 w-full">
<div class="flex border-b
border-gray-100
dark:border-gray-800 w-full">
<input
class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r dark:border-gray-800"
class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r
border-gray-100
dark:border-gray-800"
placeholder={$i18n.t('Title (e.g. Tell me a fun fact)')}
bind:value={prompt.title[0]}
/>
<input
class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r dark:border-gray-800"
class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r
border-gray-100
dark:border-gray-800"
placeholder={$i18n.t('Subtitle (e.g. about the Roman Empire)')}
bind:value={prompt.title[1]}
/>
</div>
<input
class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r dark:border-gray-800"
class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r
border-gray-100
dark:border-gray-800"
placeholder={$i18n.t('Prompt (e.g. Tell me a fun fact about the Roman Empire)')}
bind:value={prompt.content}
/>
...
...
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