mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 01:06:45 +00:00
Add layout direction to all the chat components
This commit is contained in:
parent
a3a832a935
commit
16b218e686
@ -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);
|
||||
|
@ -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`)}
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user