diff --git a/apps/desktop/src/preview/PickPreload.ts b/apps/desktop/src/preview/PickPreload.ts index 37c7b99dcb53e0cedca504b1d1bf318f5b6dbd10..7b0f900f8fec2d4dc907d3735436f0c2f9d6cb78 100644 --- a/apps/desktop/src/preview/PickPreload.ts +++ b/apps/desktop/src/preview/PickPreload.ts @@ -554,6 +554,7 @@ function startAnnotation(sendEnabled: boolean): void { let finished = false; const host = document.createElement("div"); host.setAttribute(OVERLAY_ATTRIBUTE, ""); + host.setAttribute("dir", "ltr"); host.style.cssText = `position:fixed;inset:0;z-index:${Z_INDEX_OVERLAY};pointer-events:none`; applyAnnotationTheme(host, annotationTheme); const shadowRoot = host.attachShadow({ mode: "closed" }); @@ -563,6 +564,7 @@ function startAnnotation(sendEnabled: boolean): void { const root = document.createElement("div"); root.setAttribute(OVERLAY_ATTRIBUTE, ""); + root.setAttribute("dir", "ltr"); root.className = "fixed inset-0 font-sans text-foreground"; root.style.cssText = "pointer-events:none"; const cursorStyle = document.createElement("style"); @@ -612,6 +614,7 @@ function startAnnotation(sendEnabled: boolean): void { const comment = document.createElement("textarea"); comment.placeholder = "Describe the change…"; + comment.setAttribute("dir", "auto"); comment.rows = 1; comment.className = "min-h-8 max-h-24 min-w-0 flex-1 resize-none overflow-y-hidden border-0 border-b border-b-transparent bg-transparent px-0 py-1.5 font-sans text-sm leading-5 text-foreground outline-none ring-0 placeholder:text-muted-foreground focus:border-b-primary focus:outline-none focus:ring-0";