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
23d71233
Unverified
Commit
23d71233
authored
Feb 07, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 07, 2024
Browse files
Merge pull request #677 from ollama-webui/styling
feat: styling update
parents
9fccf72b
965cf0d2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
28 deletions
+30
-28
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+8
-8
src/lib/components/chat/MessageInput/Suggestions.svelte
src/lib/components/chat/MessageInput/Suggestions.svelte
+4
-4
src/lib/components/common/Modal.svelte
src/lib/components/common/Modal.svelte
+1
-1
src/lib/components/layout/Navbar.svelte
src/lib/components/layout/Navbar.svelte
+1
-1
src/routes/(app)/+layout.svelte
src/routes/(app)/+layout.svelte
+1
-1
src/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+2
-2
tailwind.config.js
tailwind.config.js
+13
-11
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
23d71233
...
...
@@ -316,9 +316,9 @@
</div>
</div>
</div>
<div class="bg-white dark:bg-gray-
8
00">
<div class="bg-white dark:bg-gray-
9
00">
<div class="max-w-3xl px-2.5 -mb-0.5 mx-auto inset-x-0">
<div class="
bg-gradient-to-t from-white dark:from-gray-800 from-40%
pb-2">
<div class=" pb-2">
<input
bind:this={filesInputElement}
bind:files={inputFiles}
...
...
@@ -361,7 +361,7 @@
}}
/>
<form
class=" flex flex-col relative w-full rounded-xl border dark:border-gray-
6
00 bg-white dark:bg-gray-
8
00 dark:text-gray-100"
class=" flex flex-col relative w-full rounded-xl border dark:border-gray-
7
00 bg-white dark:bg-gray-
9
00 dark:text-gray-100"
on:submit|preventDefault={() => {
submitPrompt(prompt, user);
}}
...
...
@@ -530,7 +530,7 @@
<textarea
id="chat-textarea"
class=" dark:bg-gray-
8
00 dark:text-gray-100 outline-none w-full py-3 px-2 {fileUploadEnabled
class=" dark:bg-gray-
9
00 dark:text-gray-100 outline-none w-full py-3 px-2 {fileUploadEnabled
? ''
: ' pl-4'} rounded-xl resize-none h-[48px]"
placeholder={chatInputPlaceholder !== ''
...
...
@@ -735,19 +735,19 @@
<button
class="{prompt !== ''
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
: 'text-white bg-gray-100 dark:text-gray-
8
00 dark:bg-gray-
6
00 disabled'} transition rounded-lg p-1 mr-0.5 w-7 h-7 self-center"
: 'text-white bg-gray-100 dark:text-gray-
9
00 dark:bg-gray-
8
00 disabled'} transition rounded-lg p-1 mr-0.5 w-7 h-7 self-center"
type="submit"
disabled={prompt === ''}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0
20 20
"
viewBox="0 0
16 16
"
fill="currentColor"
class="w-5 h-
5
"
class="w-
4.
5 h-
4.5 mx-auto
"
>
<path
fill-rule="evenodd"
d="M
10
1
7
a.75.75 0 01-.75-.75V
5.612L5.29 9
.7
7
a.75.75 0 01-1.0
8
-1.0
4l5.2
5-
5
.5a.75.75 0 0
1
1.0
8
0l
5.2
5
5
.5a.75.75 0
1
1-1.0
8
1.0
4l-3.96-4.158V16.25
A.75.75 0 0
110 17z
"
d="M
8
1
4
a.75.75 0 0
1-.75-.75V
4.56L4.03 7
.7
8
a.75.75 0 0
1-1.0
6
-1.0
6l4.
5-
4
.5a.75.75 0 0
1
1.0
6
0l
4.
5
4
.5a.75.75 0
0
1-1.0
6
1.0
6L8.75 4.56v8.69
A.75.75 0 0
1 8 14Z
"
clip-rule="evenodd"
/>
</svg>
...
...
src/lib/components/chat/MessageInput/Suggestions.svelte
View file @
23d71233
...
...
@@ -7,7 +7,7 @@
{#each suggestionPrompts as prompt, promptIdx}
<div class="{promptIdx > 1 ? 'hidden sm:inline-flex' : ''} basis-full sm:basis-1/2 p-[5px]">
<button
class=" flex-1 flex justify-between w-full h-full px-4 py-2.5 bg-white hover:bg-gray-50 dark:bg-gray-
8
00 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-
6
00 rounded-lg transition group"
class=" flex-1 flex justify-between w-full h-full px-4 py-2.5 bg-white hover:bg-gray-50 dark:bg-gray-
9
00 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-
8
00 rounded-lg transition group"
on:click={() => {
submitPrompt(prompt.content);
}}
...
...
@@ -24,17 +24,17 @@
</div>
<div
class="self-center p-1 rounded-lg text-white group-hover:bg-gray-100 group-hover:text-gray-800 dark:group-hover:bg-gray-800 dark:group-hover:text-gray-
3
00 dark:text-gray-
8
00 transition"
class="self-center p-1 rounded-lg text-white group-hover:bg-gray-100 group-hover:text-gray-800 dark:group-hover:bg-gray-800 dark:group-hover:text-gray-
1
00 dark:text-gray-
9
00 transition"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0
20 20
"
viewBox="0 0
16 16
"
fill="currentColor"
class="w-4 h-4"
>
<path
fill-rule="evenodd"
d="M
10
1
7
a.75.75 0 01-.75-.75V
5.612L5.29 9
.7
7
a.75.75 0 01-1.0
8
-1.0
4l5.2
5-
5
.5a.75.75 0 0
1
1.0
8
0l
5.2
5
5
.5a.75.75 0
1
1-1.0
8
1.0
4l-3.96-4.158V16.25
A.75.75 0 0
110 17z
"
d="M
8
1
4
a.75.75 0 0
1-.75-.75V
4.56L4.03 7
.7
8
a.75.75 0 0
1-1.0
6
-1.0
6l4.
5-
4
.5a.75.75 0 0
1
1.0
6
0l
4.
5
4
.5a.75.75 0
0
1-1.0
6
1.0
6L8.75 4.56v8.69
A.75.75 0 0
1 8 14Z
"
clip-rule="evenodd"
/>
</svg>
...
...
src/lib/components/common/Modal.svelte
View file @
23d71233
...
...
@@ -34,7 +34,7 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="fixed top-0 right-0 left-0 bottom-0 bg-
stone-900/5
0 w-full min-h-screen h-screen flex justify-center z-50 overflow-hidden overscroll-contain"
class="fixed top-0 right-0 left-0 bottom-0 bg-
black/6
0 w-full min-h-screen h-screen flex justify-center z-50 overflow-hidden overscroll-contain"
on:click={() => {
show = false;
}}
...
...
src/lib/components/layout/Navbar.svelte
View file @
23d71233
...
...
@@ -68,7 +68,7 @@
<ShareChatModal bind:show={showShareChatModal} {downloadChat} {shareChat} />
<nav
id="nav"
class=" fixed py-2.5 top-0 flex flex-row justify-center bg-white/95 dark:bg-gray-
8
00/90 dark:text-gray-200 backdrop-blur-xl w-screen z-30"
class=" fixed py-2.5 top-0 flex flex-row justify-center bg-white/95 dark:bg-gray-
9
00/90 dark:text-gray-200 backdrop-blur-xl w-screen z-30"
>
<div class=" flex max-w-3xl w-full mx-auto px-3">
<div class="flex items-center w-full max-w-full">
...
...
src/routes/(app)/+layout.svelte
View file @
23d71233
...
...
@@ -351,7 +351,7 @@
{/if}
<div
class=" text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-
8
00 min-h-screen overflow-auto flex flex-row"
class=" text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-
9
00 min-h-screen overflow-auto flex flex-row"
>
<Sidebar />
<SettingsModal bind:show={$showSettings} />
...
...
src/routes/(app)/admin/+page.svelte
View file @
23d71233
...
...
@@ -78,7 +78,7 @@
{/key}
<div
class=" bg-white dark:bg-gray-
8
00 dark:text-gray-100 min-h-screen w-full flex justify-center font-mona"
class=" bg-white dark:bg-gray-
9
00 dark:text-gray-100 min-h-screen w-full flex justify-center font-mona"
>
{#if loaded}
<div class="w-full max-w-3xl px-10 md:px-16 min-h-screen flex flex-col">
...
...
@@ -150,7 +150,7 @@
</thead>
<tbody>
{#each users as user}
<tr class="bg-white border-b dark:bg-gray-
8
00 dark:border-gray-700">
<tr class="bg-white border-b dark:bg-gray-
9
00 dark:border-gray-700">
<th
scope="row"
class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white w-fit"
...
...
tailwind.config.js
View file @
23d71233
...
...
@@ -6,17 +6,19 @@ export default {
extend
:
{
colors
:
{
gray
:
{
50
:
'
#f7f7f8
'
,
100
:
'
#ececf1
'
,
200
:
'
#d9d9e3
'
,
300
:
'
#c5c5d2
'
,
400
:
'
#acacbe
'
,
500
:
'
#8e8ea0
'
,
600
:
'
#565869
'
,
700
:
'
#40414f
'
,
800
:
'
#343541
'
,
900
:
'
#202123
'
,
950
:
'
#050509
'
50
:
'
#f9f9f9
'
,
100
:
'
#ececec
'
,
200
:
'
#e3e3e3
'
,
300
:
'
#cdcdcd
'
,
400
:
'
#b4b4b4
'
,
500
:
'
#9b9b9b
'
,
600
:
'
#676767
'
,
700
:
'
#4e4e4e
'
,
800
:
'
#333
'
,
850
:
'
#262626
'
,
900
:
'
#171717
'
,
950
:
'
#0d0d0d
'
}
},
typography
:
{
...
...
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