Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
2e77ad87
Commit
2e77ad87
authored
May 16, 2024
by
Ido Henri Mamia
Browse files
Make the margin and avatar support both LTR and RTL
parent
97f1d166
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/lib/components/chat/Messages/Name.svelte
src/lib/components/chat/Messages/Name.svelte
+1
-1
src/lib/components/chat/Messages/ProfileImage.svelte
src/lib/components/chat/Messages/ProfileImage.svelte
+3
-1
No files found.
src/lib/components/chat/Messages/Name.svelte
View file @
2e77ad87
<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>
src/lib/components/chat/Messages/ProfileImage.svelte
View file @
2e77ad87
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment