From 064c1d587f01caa284c83b1791d48108a9063e3d Mon Sep 17 00:00:00 2001 From: Michael Berger Date: Tue, 24 Mar 2026 16:27:51 -0700 Subject: [PATCH] Prevent Safari Live Text selection on attachment images Safari's Live Text recognizes text within images and makes it selectable. After dragging an attachment image, subsequent interactions can trigger this text recognition, highlighting text inside the image unexpectedly. Add draggable="false" to the upload node's preview image (the permanent node already has this) and the -webkit-user-select prefix to attachment preview images for Safari consistency. Fixes: https://app.fizzy.do/5986089/cards/5121 Co-Authored-By: Claude Opus 4.6 (1M context) --- app/assets/stylesheets/lexxy-content.css | 1 + src/nodes/action_text_attachment_upload_node.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/lexxy-content.css b/app/assets/stylesheets/lexxy-content.css index e1a1ac2e..871a16e2 100644 --- a/app/assets/stylesheets/lexxy-content.css +++ b/app/assets/stylesheets/lexxy-content.css @@ -338,6 +338,7 @@ display: block; margin-inline: auto; max-inline-size: 100%; + -webkit-user-select: none; user-select: none; } diff --git a/src/nodes/action_text_attachment_upload_node.js b/src/nodes/action_text_attachment_upload_node.js index 441d72be..ee818bc6 100644 --- a/src/nodes/action_text_attachment_upload_node.js +++ b/src/nodes/action_text_attachment_upload_node.js @@ -103,7 +103,7 @@ export class ActionTextAttachmentUploadNode extends ActionTextAttachmentNode { } #createDOMForImage() { - return createElement("img") + return createElement("img", { draggable: "false" }) } #createDOMForFile() {