The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 15:30 UTC
fix(desktop): keep annotation comment direction independent of host page (#11005)
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Abdelrhman Ehab committed
Oct 11, 2026 at 06:13 UTC
bfbdfed9826e3b619a99ba2b563608424c7cd807
1 file changed
+3
apps/desktop/src/preview/PickPreload.ts
+3
@@ -554,6 +554,7 @@ function startAnnotation(sendEnabled: boolean): void {
554
let finished = false;
555
const host = document.createElement("div");
556
host.setAttribute(OVERLAY_ATTRIBUTE, "");
557
+ host.setAttribute("dir", "ltr");
558
host.style.cssText = `position:fixed;inset:0;z-index:${Z_INDEX_OVERLAY};pointer-events:none`;
559
applyAnnotationTheme(host, annotationTheme);
560
const shadowRoot = host.attachShadow({ mode: "closed" });
@@ -563,6 +564,7 @@ function startAnnotation(sendEnabled: boolean): void {
564
565
const root = document.createElement("div");
566
root.setAttribute(OVERLAY_ATTRIBUTE, "");
567
+ root.setAttribute("dir", "ltr");
568
root.className = "fixed inset-0 font-sans text-foreground";
569
root.style.cssText = "pointer-events:none";
570
const cursorStyle = document.createElement("style");
@@ -612,6 +614,7 @@ function startAnnotation(sendEnabled: boolean): void {
614
615
const comment = document.createElement("textarea");
616
comment.placeholder = "Describe the change…";
617
+ comment.setAttribute("dir", "auto");
618
comment.rows = 1;
619
comment.className =
620
"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";