mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #2318] [MERGED] Add RTL layout chat support #59816
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/2318
Author: @idomamia
Created: 5/16/2024
Status: ✅ Merged
Merged: 5/18/2024
Merged by: @tjbck
Base:
dev← Head:feat/rtl-layout-chat-support📝 Commits (10+)
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 RTL3f4eb6cMerge branch 'dev' of https://github.com/open-webui/open-webui into feat/rtl-layout-chat-support34dd32dMerge branch 'dev' of https://github.com/open-webui/open-webui into feat/rtl-layout-chat-support92c694eFix arrows to be in LTR layout for all layoutse5d5743Merge branch 'dev' of https://github.com/open-webui/open-webui into feat/rtl-layout-chat-support📊 Changes
9 files changed (+38 additions, -6 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(+2 -2)📝
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.