mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
fix: mixed Arabic and English lines in a message all take the first line's direction (#31868)
When a message mixed right-to-left and left-to-right lines, the chat input and the sent message gave every line the direction of the first one, so an English line under an Arabic one showed up as "?Hello, how are you" with the question mark at the start and sat on the wrong side. Each line now picks its own direction and alignment, both while typing and in the sent message. With Chat Direction set to LTR or RTL instead of Auto, lines in the input box now also align by their own language, the way sent messages already did. Fixes #31827
This commit is contained in:
parent
f25708484b
commit
983fa6c974
1 changed files with 10 additions and 0 deletions
10
src/app.css
10
src/app.css
|
|
@ -415,6 +415,16 @@ input[type='number'] {
|
|||
outline: none;
|
||||
}
|
||||
|
||||
/* Each line picks its own direction so mixed RTL/LTR text reads correctly. */
|
||||
.ProseMirror p {
|
||||
unicode-bidi: plaintext;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
p[dir='auto'] {
|
||||
unicode-bidi: plaintext;
|
||||
}
|
||||
|
||||
:focus-visible:not(.ProseMirror):not([contenteditable='true']):not(input):not(textarea),
|
||||
.focus-ring:focus-visible {
|
||||
outline: 2px solid theme(--color-blue-500);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue