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
5b2369da
"vscode:/vscode.git/clone" did not exist on "f1ab955f64133fdf33ed310ea400331d06d63b28"
Commit
5b2369da
authored
May 17, 2024
by
Timothy J. Baek
Browse files
fix: #2332
parent
014e52c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
src/lib/components/chat/Messages/ProfileImage.svelte
src/lib/components/chat/Messages/ProfileImage.svelte
+6
-1
src/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+6
-2
No files found.
src/lib/components/chat/Messages/ProfileImage.svelte
View file @
5b2369da
<script lang="ts">
<script lang="ts">
import { WEBUI_BASE_URL } from '$lib/constants';
export let src = '/user.png';
export let src = '/user.png';
</script>
</script>
<div class=" mr-3">
<div class=" mr-3">
<img
<img
crossorigin="anonymous"
crossorigin="anonymous"
{src}
src={src.startsWith(WEBUI_BASE_URL) ||
src.startsWith('https://www.gravatar.com/avatar/') ||
src.startsWith('data:')
? src
: `/user.png`}
class=" w-8 object-cover rounded-full"
class=" w-8 object-cover rounded-full"
alt="profile"
alt="profile"
draggable="false"
draggable="false"
...
...
src/routes/(app)/admin/+page.svelte
View file @
5b2369da
<script>
<script>
import { WEBUI_
API_
BASE_URL } from '$lib/constants';
import { WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_NAME, config, user, showSidebar } from '$lib/stores';
import { WEBUI_NAME, config, user, showSidebar } from '$lib/stores';
import { goto } from '$app/navigation';
import { goto } from '$app/navigation';
import { onMount, getContext } from 'svelte';
import { onMount, getContext } from 'svelte';
...
@@ -264,7 +264,11 @@
...
@@ -264,7 +264,11 @@
<div class="flex flex-row w-max">
<div class="flex flex-row w-max">
<img
<img
class=" rounded-full w-6 h-6 object-cover mr-2.5"
class=" rounded-full w-6 h-6 object-cover mr-2.5"
src={user.profile_image_url}
src={user.profile_image_url.startsWith(WEBUI_BASE_URL) ||
user.profile_image_url.startsWith('https://www.gravatar.com/avatar/') ||
user.profile_image_url.startsWith('data:')
? user.profile_image_url
: `/user.png`}
alt="user"
alt="user"
/>
/>
...
...
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