mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
refac
This commit is contained in:
parent
cc4e192a51
commit
eb98631ff6
@ -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 @@
|
|||||||
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"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user