fix(web): add bidirectional text support for RTL languages #2128
Closeddarkyeg(GitHub profile, opens in a new tab)wants to merge 5 commits into
main fromrefs/pull/2128/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -252,3 +252,17 @@252252 word-break: break-word;253253 }254254255+/* Bidirectional text direction detection for mixed RTL/LTR content */256+.chat-markdown p,257+.chat-markdown li,258+.chat-markdown td,259+.chat-markdown th,260+.chat-markdown h1,261+.chat-markdown h2,262+.chat-markdown h3,263+.chat-markdown h4,264+.chat-markdown h5,265+.chat-markdown h6,266+.chat-markdown blockquote {267+ unicode-bidi: plaintext;268+}@@ -254,0 +263,21 @@263+.chat-markdown h4,264+.chat-markdown h5,265+.chat-markdown h6,266+.chat-markdown blockquote {267+ unicode-bidi: plaintext;268+}269+270+/* Code and tables remain LTR regardless of surrounding text direction */271+.chat-markdown pre,272+.chat-markdown code,273+.chat-markdown table {274+ direction: ltr;275+ unicode-bidi: isolate;276+}277+278+/* Per-line direction detection for pre-wrap user messages and composer */279+.user-message-text,280+[data-testid="composer-editor"],281+[data-testid="composer-editor"] p {282+ unicode-bidi: plaintext;283+}
darkyeg(GitHub profile, opens in a new tab) changed the title
- apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx line 127OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -124,4 +124,4 @@124124 }125125126126 return (127- <div className="px-4 py-3 sm:px-5">127+ <div dir="auto" className="px-4 py-3 sm:px-5">
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
5100bd3b-100e-45c7-90e0-7b7010a36136You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share