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
16b218e6
Commit
16b218e6
authored
May 16, 2024
by
Ido Henri Mamia
Browse files
Add layout direction to all the chat components
parent
a3a832a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+1
-0
src/lib/components/chat/Messages/ResponseMessage.svelte
src/lib/components/chat/Messages/ResponseMessage.svelte
+1
-1
src/lib/components/chat/Messages/UserMessage.svelte
src/lib/components/chat/Messages/UserMessage.svelte
+1
-1
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
16b218e6
...
@@ -584,6 +584,7 @@
...
@@ -584,6 +584,7 @@
}}
}}
/>
/>
<form
<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"
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={() => {
on:submit|preventDefault={() => {
submitPrompt(prompt, user);
submitPrompt(prompt, user);
...
...
src/lib/components/chat/Messages/ResponseMessage.svelte
View file @
16b218e6
...
@@ -332,7 +332,7 @@
...
@@ -332,7 +332,7 @@
<CitationsModal bind:show={showCitationModal} citation={selectedCitation} />
<CitationsModal bind:show={showCitationModal} citation={selectedCitation} />
{#key message.id}
{#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
<ProfileImage
src={modelfiles[message.model]?.imageUrl ??
src={modelfiles[message.model]?.imageUrl ??
($i18n.language === 'dg-DG' ? `/doge.png` : `${WEBUI_BASE_URL}/static/favicon.png`)}
($i18n.language === 'dg-DG' ? `/doge.png` : `${WEBUI_BASE_URL}/static/favicon.png`)}
...
...
src/lib/components/chat/Messages/UserMessage.svelte
View file @
16b218e6
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
};
};
</script>
</script>
<div class=" flex w-full">
<div class=" flex w-full"
dir="{$settings.chatDirection}"
>
<ProfileImage
<ProfileImage
src={message.user
src={message.user
? $modelfiles.find((modelfile) => modelfile.tagName === message.user)?.imageUrl ?? '/user.png'
? $modelfiles.find((modelfile) => modelfile.tagName === message.user)?.imageUrl ?? '/user.png'
...
...
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