mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 01:06:45 +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 />
|
||||
</div>
|
||||
|
@ -1,7 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { settings } from '$lib/stores';
|
||||
|
||||
export let src = '/user.png';
|
||||
</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" />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user