fix(desktop): keep annotation comment direction independent of host page (#11005)
Co-authored-by: Claude Sonnet 5 <[email protected]>
This commit is contained in:
1 parent
584af5af45
commit
bfbdfed982
1 file changed
+3
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user