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
136e864e
Unverified
Commit
136e864e
authored
Feb 14, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 14, 2024
Browse files
Merge pull request #738 from ollama-webui/styling
refac: placeholder styling
parents
a2a433b0
0b5344c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
src/lib/components/chat/Messages/Placeholder.svelte
src/lib/components/chat/Messages/Placeholder.svelte
+4
-8
static/favicon.png
static/favicon.png
+0
-0
static/ollama.png
static/ollama.png
+0
-0
No files found.
src/lib/components/chat/Messages/Placeholder.svelte
View file @
136e864e
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
{#if models.length > 0}
{#if models.length > 0}
<div class="m-auto text-center max-w-md pb-56 px-2">
<div class="m-auto text-center max-w-md pb-56 px-2">
<div class="flex justify-center mt-8">
<div class="flex justify-center mt-8">
<div class="flex -space-x-1
0
">
<div class="flex -space-x-
4 mb-
1">
{#each models as model, modelIdx}
{#each models as model, modelIdx}
<button
<button
on:click={() => {
on:click={() => {
...
@@ -29,18 +29,14 @@
...
@@ -29,18 +29,14 @@
<img
<img
src={modelfiles[model]?.imageUrl ?? './favicon.png'}
src={modelfiles[model]?.imageUrl ?? './favicon.png'}
alt="modelfile"
alt="modelfile"
class=" w-20 mb-2 rounded-full {models.length > 1
class=" w-14 rounded-full border-[1px] border-gray-200 dark:border-none"
? ' border-[5px] border-white dark:border-gray-900'
: ''}"
draggable="false"
draggable="false"
/>
/>
{:else}
{:else}
<img
<img
src={models.length === 1 ? '/favicon.png' : '/favicon.png'}
src={models.length === 1 ? '/favicon.png' : '/favicon.png'}
class=" w-20 mb-2 {models.length === 1
class=" w-14 rounded-full border-[1px] border-gray-200 dark:border-none"
? ''
alt="logo"
: 'border-[5px] border-white dark:border-gray-900'} rounded-full"
alt="ollama"
draggable="false"
draggable="false"
/>
/>
{/if}
{/if}
...
...
static/favicon.png
View replaced file @
a2a433b0
View file @
136e864e
13.2 KB
|
W:
|
H:
7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/ollama.png
deleted
100644 → 0
View file @
a2a433b0
7.61 KB
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