Merge branch 'dev' into feat/rtl-layout-chat-support

This commit is contained in:
Ido Henri Mamia
2024-05-18 13:58:53 +03:00
committed by GitHub
46 changed files with 703 additions and 87 deletions
@@ -1,13 +1,18 @@
<script lang="ts">
import { settings } from '$lib/stores';
import { WEBUI_BASE_URL } from '$lib/constants';
export let src = '/user.png';
</script>
<div class={$settings?.chatDirection === 'LTR' ? "mr-3" : "ml-3"}>
<img
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"
alt="profile"
draggable="false"