mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #2317] [CLOSED] Add RTL layout chat support #44007
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/2317
Author: @idomamia
Created: 5/16/2024
Status: ❌ Closed
Base:
dev← Head:feat/rtl-layout-chat-support📝 Commits (6)
9c389dfAdd chat direction to the settings storea3a832aAdd chat direction toggle button in the interface settings16b218eAdd layout direction to all the chat components4ccb5d3Code blocks should be in LTR layout for all layouts97f1d16Add to the i18n the chat direction text2e77ad8Make the margin and avatar support both LTR and RTL📊 Changes
9 files changed (+37 additions, -5 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+1 -0)📝
src/lib/components/chat/Messages/CodeBlock.svelte(+1 -1)📝
src/lib/components/chat/Messages/Name.svelte(+1 -1)📝
src/lib/components/chat/Messages/ProfileImage.svelte(+3 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+1 -1)📝
src/lib/components/chat/Messages/UserMessage.svelte(+1 -1)📝
src/lib/components/chat/Settings/Interface.svelte(+25 -0)📝
src/lib/i18n/locales/en-US/translation.json(+3 -0)📝
src/lib/stores/index.ts(+1 -0)📄 Description
Pull Request Checklist
devbranch.Description
Add support for RTL layout only for the chat. The user can now choose the preferred layout, LTR (left-to-right) or RTL (right-to-left), via the interface settings. The default is LTR.
Notice that code blocks will remain in LTR as it is considered the modern standard for programming languages.
Changelog Entry
Added
Changed
Additional Information
A gif of my implementation:

Related to #2134
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.