[GH-ISSUE #19743] feat: Notes section does not respect RTL text direction for Persian/Arabic languages #57646

Closed
opened 2026-05-05 21:17:34 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @mhosseinarab on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19743

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

In the Notes section, text written in Right-to-Left (RTL) languages such as Persian is not displayed correctly. The text direction remains Left-to-Right (LTR), forcing the text to align to the left side of the screen. This makes paragraphs and multi-line text difficult to read and visually incorrect for native speakers.

Desired Solution you'd like

The Notes editor/viewer should detect RTL characters and displaying the text with Right-to-Left directionality and alignment.

Alternatives Considered

No response

Additional Context

Image
Originally created by @mhosseinarab on GitHub (Dec 4, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/19743 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description In the Notes section, text written in Right-to-Left (RTL) languages such as Persian is not displayed correctly. The text direction remains Left-to-Right (LTR), forcing the text to align to the left side of the screen. This makes paragraphs and multi-line text difficult to read and visually incorrect for native speakers. ### Desired Solution you'd like The Notes editor/viewer should detect RTL characters and displaying the text with Right-to-Left directionality and alignment. ### Alternatives Considered _No response_ ### Additional Context <img width="1599" height="160" alt="Image" src="https://github.com/user-attachments/assets/ab2c167c-6b6b-43a5-b5cd-d4c513947707" />
GiteaMirror added the bugconfirmed issue labels 2026-05-05 21:17:34 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Dec 4, 2025):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #13633 issue: Input text box direction not affected by RTL Interface setting
    by merrime-n • May 07, 2025 • bug

  2. #2134 feat: RTL support
    by liorkesos • May 09, 2024 • enhancement, good first issue

  3. #13627 feat: Change the UI font for Persian and Arabic languages
    by merrime-n • May 07, 2025


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3611314924 --> @owui-terminator[bot] commented on GitHub (Dec 4, 2025): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#13633](https://github.com/open-webui/open-webui/issues/13633) **issue: Input text box direction not affected by RTL Interface setting** *by merrime-n • May 07, 2025 • `bug`* 2. [#2134](https://github.com/open-webui/open-webui/issues/2134) **feat: RTL support** *by liorkesos • May 09, 2024 • `enhancement`, `good first issue`* 3. [#13627](https://github.com/open-webui/open-webui/issues/13627) **feat: Change the UI font for Persian and Arabic languages** *by merrime-n • May 07, 2025* --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@rgaricano commented on GitHub (Dec 4, 2025):

Tested the issue,

Reference to fix it:

<!-- gh-comment-id:3613063201 --> @rgaricano commented on GitHub (Dec 4, 2025): Tested the issue, Reference to fix it: - Fix the Notes title input and metadata bar: add ` dir={$settings?.chatDirection ?? 'auto'}` in https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/notes/NoteEditor.svelte#L880 - Update RichTextInput.svelte to accept direction prop & apply: - add `export let direction = 'auto';` in https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/common/RichTextInput.svelte#L242 - apply to the editor container, adding `dir={direction}` in https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/common/RichTextInput.svelte#L1157-L1162 - Update NoteEditor.svelte to pass the direction to RichTextInput Component - add `direction={$settings?.chatDirection ?? 'auto'}` around https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/notes/NoteEditor.svelte#L1161
Author
Owner

@silentoplayz commented on GitHub (Dec 4, 2025):

I am able to confirm this issue on the latest dev.

<!-- gh-comment-id:3614699321 --> @silentoplayz commented on GitHub (Dec 4, 2025): I am able to confirm this issue on the latest `dev`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#57646