This commit is contained in:
Timothy J. Baek 2024-06-17 11:11:54 -07:00
parent cc4e192a51
commit eb98631ff6

View File

@ -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"
/> />