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
c57c72cc
Commit
c57c72cc
authored
Dec 19, 2023
by
Timothy J. Baek
Browse files
fix: disable profile image drag
parent
0f2360a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+16
-2
No files found.
src/lib/components/chat/Messages.svelte
View file @
c57c72cc
...
...
@@ -362,9 +362,19 @@
<div
class=
"m-auto text-center max-w-md pb-56 px-2"
>
<div
class=
"flex justify-center mt-8"
>
{#if selectedModelfile
&&
selectedModelfile.imageUrl}
<img
src=
{selectedModelfile?.imageUrl}
class=
" w-20 mb-2 rounded-full"
/>
<img
src=
{selectedModelfile?.imageUrl}
alt=
"modelfile"
class=
" w-20 mb-2 rounded-full"
draggable=
"false"
/>
{:else}
<img
src=
"/ollama.png"
class=
" w-16 invert-[10%] dark:invert-[100%] rounded-full"
/>
<img
src=
"/ollama.png"
class=
" w-16 invert-[10%] dark:invert-[100%] rounded-full"
alt=
"ollama"
draggable=
"false"
/>
{/if}
</div>
<div
class=
" mt-2 text-2xl text-gray-800 dark:text-gray-100 font-semibold"
>
...
...
@@ -401,12 +411,14 @@
src=
"{$settings.gravatarUrl ? $settings.gravatarUrl : '/user'}.png"
class=
" max-w-[28px] object-cover rounded-full"
alt=
"User profile"
draggable=
"false"
/>
{:else}
<img
src=
{$user
?
$
user.profile_image_url
:
'/
user.png
'}
class=
" max-w-[28px] object-cover rounded-full"
alt=
"User profile"
draggable=
"false"
/>
{/if}
{:else if selectedModelfile}
...
...
@@ -414,12 +426,14 @@
src=
{selectedModelfile?.imageUrl
??
'/
favicon.png
'}
class=
" max-w-[28px] object-cover rounded-full"
alt=
"Ollama profile"
draggable=
"false"
/>
{:else}
<img
src=
"/favicon.png"
class=
" max-w-[28px] object-cover rounded-full"
alt=
"Ollama profile"
draggable=
"false"
/>
{/if}
</div>
...
...
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