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
965cf0d2
Commit
965cf0d2
authored
Feb 07, 2024
by
Timothy J. Baek
Browse files
feat: styling update
parent
d22813a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+5
-5
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/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+2
-2
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
965cf0d2
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
}}
}}
/>
/>
<form
<form
class=" flex flex-col relative w-full rounded-xl border dark:border-gray-
6
00 bg-white dark:bg-gray-900 dark:text-gray-100"
class=" flex flex-col relative w-full rounded-xl border dark:border-gray-
7
00 bg-white dark:bg-gray-900 dark:text-gray-100"
on:submit|preventDefault={() => {
on:submit|preventDefault={() => {
submitPrompt(prompt, user);
submitPrompt(prompt, user);
}}
}}
...
@@ -735,19 +735,19 @@
...
@@ -735,19 +735,19 @@
<button
<button
class="{prompt !== ''
class="{prompt !== ''
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
? '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"
type="submit"
disabled={prompt === ''}
disabled={prompt === ''}
>
>
<svg
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0
20 20
"
viewBox="0 0
16 16
"
fill="currentColor"
fill="currentColor"
class="w-5 h-
5
"
class="w-
4.
5 h-
4.5 mx-auto
"
>
>
<path
<path
fill-rule="evenodd"
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"
clip-rule="evenodd"
/>
/>
</svg>
</svg>
...
...
src/lib/components/chat/MessageInput/Suggestions.svelte
View file @
965cf0d2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
{#each suggestionPrompts as prompt, promptIdx}
{#each suggestionPrompts as prompt, promptIdx}
<div class="{promptIdx > 1 ? 'hidden sm:inline-flex' : ''} basis-full sm:basis-1/2 p-[5px]">
<div class="{promptIdx > 1 ? 'hidden sm:inline-flex' : ''} basis-full sm:basis-1/2 p-[5px]">
<button
<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={() => {
on:click={() => {
submitPrompt(prompt.content);
submitPrompt(prompt.content);
}}
}}
...
@@ -24,17 +24,17 @@
...
@@ -24,17 +24,17 @@
</div>
</div>
<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
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0
20 20
"
viewBox="0 0
16 16
"
fill="currentColor"
fill="currentColor"
class="w-4 h-4"
class="w-4 h-4"
>
>
<path
<path
fill-rule="evenodd"
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"
clip-rule="evenodd"
/>
/>
</svg>
</svg>
...
...
src/lib/components/common/Modal.svelte
View file @
965cf0d2
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
<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={() => {
on:click={() => {
show = false;
show = false;
}}
}}
...
...
src/routes/(app)/admin/+page.svelte
View file @
965cf0d2
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
{/key}
{/key}
<div
<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}
{#if loaded}
<div class="w-full max-w-3xl px-10 md:px-16 min-h-screen flex flex-col">
<div class="w-full max-w-3xl px-10 md:px-16 min-h-screen flex flex-col">
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,7 @@
</thead>
</thead>
<tbody>
<tbody>
{#each users as user}
{#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
<th
scope="row"
scope="row"
class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white w-fit"
class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white w-fit"
...
...
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