mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
Make the margin and avatar support both LTR and RTL
This commit is contained in:
parent
97f1d1665a
commit
2e77ad87cc
@ -1,3 +1,3 @@
|
|||||||
<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>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user