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
eb98631f
"...MaskRCNN/git@developer.sourcefind.cn:dcuai/dlexamples.git" did not exist on "557ae9c486008189babf389a1c2faa7d46e440ed"
Commit
eb98631f
authored
Jun 17, 2024
by
Timothy J. Baek
Browse files
refac
parent
cc4e192a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/lib/components/chat/Messages/ProfileImage.svelte
src/lib/components/chat/Messages/ProfileImage.svelte
+4
-2
No files found.
src/lib/components/chat/Messages/ProfileImage.svelte
View file @
eb98631f
...
@@ -2,10 +2,12 @@
...
@@ -2,10 +2,12 @@
import { settings } from '$lib/stores';
import { settings } from '$lib/stores';
import { WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_BASE_URL } from '$lib/constants';
export let className = 'size-8';
export let src = '/user.png';
export let src = '/user.png';
</script>
</script>
<div class={($settings?.chatDirection ?? 'LTR') === 'LTR' ? 'mr-3' : 'ml-3'}>
<div class={
`flex-shrink-0 ${
($settings?.chatDirection ?? 'LTR') === 'LTR' ? 'mr-3' : 'ml-3'}
`}
>
<img
<img
crossorigin="anonymous"
crossorigin="anonymous"
src={src.startsWith(WEBUI_BASE_URL) ||
src={src.startsWith(WEBUI_BASE_URL) ||
...
@@ -14,7 +16,7 @@
...
@@ -14,7 +16,7 @@
src.startsWith('/')
src.startsWith('/')
? src
? src
: `/user.png`}
: `/user.png`}
class="
w-8
object-cover rounded-full"
class="
{className}
object-cover rounded-full
-translate-y-0.5
"
alt="profile"
alt="profile"
draggable="false"
draggable="false"
/>
/>
...
...
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