mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #19742] issue: RTL Input Layout breaks when attaching files #57645
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?
Originally created by @mhosseinarab on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19742
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.41
Operating System
Ubuntu
Expected Behavior
The input box should maintain the Right-to-Left (RTL) layout automatically when typing in a RTL language like Persian. The file attachment "chip" and specially the text should be aligned correctly to the right side of the input bar.
Actual Behavior
Upon attaching the file, the text alignment breaks (shifts incorrectly) or maybe overlaps with the UI elements.
Steps to Reproduce
Logs & Screenshots
Correct Behavior (Before Attachment):
Broken Behavior (After Attachment):
@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:
#19563 issue:
by naruto7g • Nov 28, 2025 •
bug#19211 issue:
by Byrnes9 • Nov 16, 2025 •
bug#18084 issue: DEV docker image broken
by by-lin • Oct 06, 2025 •
bug#13633 issue: Input text box direction not affected by RTL Interface setting
by merrime-n • May 07, 2025 •
bug#18974 issue: hanging on front matter requirements after update
by DuckyBlender • Nov 06, 2025 •
bugShow 5 more related issues
#17446 issue: file upload bug from 0.6.23
by K7cl • Sep 14, 2025 •
bug#19438 issue: Icon loading regression
by JoelShepard • Nov 24, 2025 •
bug#16252 issue: Folder issue with uploaded files (not the same as #15898)
by nc98-ai • Aug 04, 2025 •
bug#15928 issue: Problematic installation
by PatrickAtYacoub • Jul 22, 2025 •
bug#14650 issue:
by lilosti • Jun 04, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@silentoplayz commented on GitHub (Dec 4, 2025):
I wasn't able to reproduce the reported issueI do want to point out that one of the attached file's name here also got the RTL treatment and reads as
txt.201-300, which is quite odd to see.Then I also managed to figure out this was possible:
Edit:
It's possible with LTR text direction as well:

@silentoplayz commented on GitHub (Dec 4, 2025):
I previously misunderstood the issue, but now I have a better understanding and I WAS and am able to reproduce the reported issue this time. I was setting the
Chat directiontoRTL, which wasn't mentioned in the reproduction steps, nor was it needed to reproduce the issue.With a file attached
Without a file attached
@rgaricano commented on GitHub (Dec 5, 2025):
Reference for fix (align file container with setted text dir):
add
dir={$settings?.chatDirection ?? 'auto'}in:
6f1486ffd0/src/lib/components/chat/Messages/UserMessage.svelte (L191)6f1486ffd0/src/lib/components/chat/Messages/ResponseMessage.svelte (L669)6f1486ffd0/src/lib/components/channel/Messages/Message.svelte (L318)