feat(chat): auto-detect text direction for RTL languages (#729)

Add dir="auto" to chat message content and composer textarea so
Persian and Arabic text automatically renders right-to-left
while English and other LTR text remains unaffected.

Co-authored-by: Haile <118998054+blackmammoth@users.noreply.github.com>
This commit is contained in:
Reza Moghaddam
2026-06-04 22:54:07 +03:30
committed by GitHub
parent 2edfef2e3f
commit fa9eaf5573
2 changed files with 3 additions and 2 deletions

View File

@@ -295,6 +295,7 @@ export default function ChatComposer({
<PromptInputTextarea
ref={textareaRef}
dir="auto"
value={input}
onChange={onInputChange}
onClick={onTextareaClick}