forked from open-webui/open-webui
fix: disable profile image drag
This commit is contained in:
parent
0f2360a384
commit
c57c72cc39
1 changed files with 16 additions and 2 deletions
|
@ -362,9 +362,19 @@
|
||||||
<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">
|
||||||
{#if selectedModelfile && selectedModelfile.imageUrl}
|
{#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}
|
{: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}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class=" mt-2 text-2xl text-gray-800 dark:text-gray-100 font-semibold">
|
<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"
|
src="{$settings.gravatarUrl ? $settings.gravatarUrl : '/user'}.png"
|
||||||
class=" max-w-[28px] object-cover rounded-full"
|
class=" max-w-[28px] object-cover rounded-full"
|
||||||
alt="User profile"
|
alt="User profile"
|
||||||
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<img
|
<img
|
||||||
src={$user ? $user.profile_image_url : '/user.png'}
|
src={$user ? $user.profile_image_url : '/user.png'}
|
||||||
class=" max-w-[28px] object-cover rounded-full"
|
class=" max-w-[28px] object-cover rounded-full"
|
||||||
alt="User profile"
|
alt="User profile"
|
||||||
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if selectedModelfile}
|
{:else if selectedModelfile}
|
||||||
|
@ -414,12 +426,14 @@
|
||||||
src={selectedModelfile?.imageUrl ?? '/favicon.png'}
|
src={selectedModelfile?.imageUrl ?? '/favicon.png'}
|
||||||
class=" max-w-[28px] object-cover rounded-full"
|
class=" max-w-[28px] object-cover rounded-full"
|
||||||
alt="Ollama profile"
|
alt="Ollama profile"
|
||||||
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<img
|
<img
|
||||||
src="/favicon.png"
|
src="/favicon.png"
|
||||||
class=" max-w-[28px] object-cover rounded-full"
|
class=" max-w-[28px] object-cover rounded-full"
|
||||||
alt="Ollama profile"
|
alt="Ollama profile"
|
||||||
|
draggable="false"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue