Add layout direction to all the chat components

This commit is contained in:
Ido Henri Mamia 2024-05-16 23:26:36 +03:00
parent a3a832a935
commit 16b218e686
3 changed files with 3 additions and 2 deletions

View File

@ -584,6 +584,7 @@
}}
/>
<form
dir={$settings?.chatDirection}
class=" flex flex-col relative w-full rounded-3xl px-1.5 border border-gray-100 dark:border-gray-850 bg-white dark:bg-gray-900 dark:text-gray-100"
on:submit|preventDefault={() => {
submitPrompt(prompt, user);

View File

@ -332,7 +332,7 @@
<CitationsModal bind:show={showCitationModal} citation={selectedCitation} />
{#key message.id}
<div class=" flex w-full message-{message.id}" id="message-{message.id}">
<div class=" flex w-full message-{message.id}" id="message-{message.id}" dir="{$settings.chatDirection}">
<ProfileImage
src={modelfiles[message.model]?.imageUrl ??
($i18n.language === 'dg-DG' ? `/doge.png` : `${WEBUI_BASE_URL}/static/favicon.png`)}

View File

@ -54,7 +54,7 @@
};
</script>
<div class=" flex w-full">
<div class=" flex w-full" dir="{$settings.chatDirection}">
<ProfileImage
src={message.user
? $modelfiles.find((modelfile) => modelfile.tagName === message.user)?.imageUrl ?? '/user.png'