Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RTL layout chat support #2318

Merged
merged 11 commits into from
May 18, 2024
Merged

Conversation

idomamia
Copy link
Contributor

Pull Request Checklist

  • Target branch: Pull requests should target the dev branch.
  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for the changes?
  • Code Review: Have you self-reviewed your code and addressed any coding standard issues?

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

  • Option to switch the chat layout from LTR to RTL in the settings (LTR is the default).
  • English translation.
  • Chat direction was added to the settings store.

Changed

  • RTL layout support in the Chat components (except Code blocks).

Additional Information

@idomamia idomamia mentioned this pull request May 16, 2024
7 tasks
@tjbck
Copy link
Contributor

tjbck commented May 16, 2024

image

Not sure if these are supposed to look like this.

@idomamia
Copy link
Contributor Author

idomamia commented May 17, 2024

image Not sure if these are supposed to look like this.

Fixed that, now the arrow will always be in LTR mode:
LTR:
image

RTL:
image

@tjbck
Copy link
Contributor

tjbck commented May 18, 2024

LGTM, Thanks!

@tjbck tjbck merged commit 9e60d03 into open-webui:dev May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants