You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3143842
Browse filesBrowse the repository at this point in the historyBrowse files
fix(session-ui): keep every script and prompt line in its own direction
Counting only Latin, Greek and Cyrillic as left to right left CJK,
Devanagari, Thai and Korean text neutral, so a single Arabic or Hebrew word
flipped a Chinese or Hindi paragraph to right to left. Count every letter and
let its script decide instead.
The user bubble also lost its per-line direction when `unicode-bidi: plaintext`
was removed: one `dir` for the whole prompt laid an English line out as right
to left when the rest was Arabic. Render each line in its own isolated span
with a `dir` computed from that line, and keep the message direction on the
bubble for alignment.
0 commit comments