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
c09514ea
Commit
c09514ea
authored
Jan 06, 2024
by
Timothy J. Baek
Browse files
fix: styling
parent
d0e1d7ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
src/lib/components/chat/MessageInput/Suggestions.svelte
src/lib/components/chat/MessageInput/Suggestions.svelte
+4
-2
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+1
-1
src/routes/(app)/modelfiles/create/+page.svelte
src/routes/(app)/modelfiles/create/+page.svelte
+1
-1
No files found.
src/lib/components/chat/MessageInput/Suggestions.svelte
View file @
c09514ea
...
@@ -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 px-4 py-2.5 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 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-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
on:click={() => {
on:click={() => {
submitPrompt(prompt.content);
submitPrompt(prompt.content);
}}
}}
...
@@ -17,7 +17,9 @@
...
@@ -17,7 +17,9 @@
<div class="text-sm font-medium dark:text-gray-300">{prompt.title[0]}</div>
<div class="text-sm font-medium dark:text-gray-300">{prompt.title[0]}</div>
<div class="text-sm text-gray-500">{prompt.title[1]}</div>
<div class="text-sm text-gray-500">{prompt.title[1]}</div>
{:else}
{:else}
<div class=" self-center text-sm font-medium dark:text-gray-300">{prompt.content}</div>
<div class=" self-center text-sm font-medium dark:text-gray-300 line-clamp-2">
{prompt.content}
</div>
{/if}
{/if}
</div>
</div>
...
...
src/lib/components/chat/SettingsModal.svelte
View file @
c09514ea
...
@@ -1163,7 +1163,7 @@
...
@@ -1163,7 +1163,7 @@
<div class=" mb-2 text-xs">Pull Progress</div>
<div class=" mb-2 text-xs">Pull Progress</div>
<div class="w-full rounded-full dark:bg-gray-800">
<div class="w-full rounded-full dark:bg-gray-800">
<div
<div
class="dark:bg-gray-600 text-xs font-medium text-
blue
-100 text-center p-0.5 leading-none rounded-full"
class="dark:bg-gray-600
bg-gray-500
text-xs font-medium text-
gray
-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max(15, pullProgress ?? 0)}%"
style="width: {Math.max(15, pullProgress ?? 0)}%"
>
>
{pullProgress ?? 0}%
{pullProgress ?? 0}%
...
...
src/routes/(app)/modelfiles/create/+page.svelte
View file @
c09514ea
...
@@ -635,7 +635,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
...
@@ -635,7 +635,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
<div class=" text-sm font-semibold mb-2">Pull Progress</div>
<div class=" text-sm font-semibold mb-2">Pull Progress</div>
<div class="w-full rounded-full dark:bg-gray-800">
<div class="w-full rounded-full dark:bg-gray-800">
<div
<div
class="dark:bg-gray-600 text-xs font-medium text-
blue
-100 text-center p-0.5 leading-none rounded-full"
class="dark:bg-gray-600
bg-gray-500
text-xs font-medium text-
gray
-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max(15, pullProgress ?? 0)}%"
style="width: {Math.max(15, pullProgress ?? 0)}%"
>
>
{pullProgress ?? 0}%
{pullProgress ?? 0}%
...
...
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