mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-12 14:45:38 -06:00
[GH-ISSUE #19743] feat: Notes section does not respect RTL text direction for Persian/Arabic languages #73584
Reference in New Issue
Block a user
Originally created by @mhosseinarab on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19743
Check Existing Issues
Verify Feature Scope
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
@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:
#13633 issue: Input text box direction not affected by RTL Interface setting
by merrime-n • May 07, 2025 •
bug#2134 feat: RTL support
by liorkesos • May 09, 2024 •
enhancement,good first issue#13627 feat: Change the UI font for Persian and Arabic languages
by merrime-n • May 07, 2025
💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@rgaricano commented on GitHub (Dec 4, 2025):
Tested the issue,
Reference to fix it:
add
dir={$settings?.chatDirection ?? 'auto'}in https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/notes/NoteEditor.svelte#L880export let direction = 'auto';in https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/common/RichTextInput.svelte#L242dir={direction}in https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/common/RichTextInput.svelte#L1157-L1162direction={$settings?.chatDirection ?? 'auto'}around https://github.com/open-webui/open-webui/blob/6f1486ffd0cb288d0e21f41845361924e0d742b3/src/lib/components/notes/NoteEditor.svelte#L1161@silentoplayz commented on GitHub (Dec 4, 2025):
I am able to confirm this issue on the latest
dev.