diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 3ff6cf6aa5..6c0045fcac 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -1518,6 +1518,7 @@ export const PromptInput: Component = (props) => { role="textbox" aria-multiline="true" aria-label={placeholder()} + dir={store.mode === "normal" ? "auto" : "ltr"} contenteditable="true" autocapitalize={store.mode === "normal" ? "sentences" : "off"} autocorrect={store.mode === "normal" ? "on" : "off"} @@ -1539,7 +1540,11 @@ export const PromptInput: Component = (props) => { "[&_[data-type=agent]]:text-syntax-type": true, "font-mono!": store.mode === "shell", }} - style={{ "padding-bottom": space }} + style={{ + "padding-bottom": space, + "unicode-bidi": store.mode === "normal" ? "plaintext" : undefined, + "text-align": "start", + }} />
{customLabel()} - {input() || customPlaceholder()} + + {input() || customPlaceholder()} + } @@ -632,10 +634,12 @@ export const SessionQuestionDock: Component<{ request: FormInfo; onSubmit: () =>