Spaces:
Paused
Paused
Download src/lib/components/chat/Messages/ProfileImage.svelte from Macketels77/open-webui: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/Macketels77/open-webui/resolve/main/src/lib/components/chat/Messages/ProfileImage.svelte
- Command line
-
hf download hf://spaces/Macketels77/open-webui/src/lib/components/chat/Messages/ProfileImage.svelte
-
curl -L -o ProfileImage.svelte https://huggingface.co/spaces/Macketels77/open-webui/resolve/main/src/lib/components/chat/Messages/ProfileImage.svelte
607 Bytes
| <script lang="ts"> | |
| import { settings } from '$lib/stores'; | |
| import { WEBUI_BASE_URL } from '$lib/constants'; | |
| export let className = 'size-8'; | |
| export let src = '/user.png'; | |
| </script> | |
| <div class={`flex-shrink-0 ${($settings?.chatDirection ?? 'LTR') === 'LTR' ? 'mr-3' : 'ml-3'}`}> | |
| <img | |
| crossorigin="anonymous" | |
| src={src.startsWith(WEBUI_BASE_URL) || | |
| src.startsWith('https://www.gravatar.com/avatar/') || | |
| src.startsWith('data:') || | |
| src.startsWith('/') | |
| ? src | |
| : `/user.png`} | |
| class=" {className} object-cover rounded-full -translate-y-[1px]" | |
| alt="profile" | |
| draggable="false" | |
| /> | |
| </div> | |