Commit 2e77ad87 authored by Ido Henri Mamia's avatar Ido Henri Mamia
Browse files

Make the margin and avatar support both LTR and RTL

parent 97f1d166
<div class=" self-center font-bold mb-0.5 capitalize line-clamp-1"> <div class=" self-center font-bold mb-0.5 capitalize line-clamp-1 contents">
<slot /> <slot />
</div> </div>
<script lang="ts"> <script lang="ts">
import { settings } from '$lib/stores';
export let src = '/user.png'; export let src = '/user.png';
</script> </script>
<div class=" mr-4"> <div class={$settings?.chatDirection === 'LTR' ? "mr-4" : "ml-4"}>
<img {src} class=" max-w-[28px] object-cover rounded-full" alt="profile" draggable="false" /> <img {src} class=" max-w-[28px] object-cover rounded-full" alt="profile" draggable="false" />
</div> </div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment