Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(email): make email body text selectable in Safari (#5556)

Peter Chinman3c0037ab1388
diff --git a/apps/web/src/features/block-email/component/EmailMessageBody.tsx b/apps/web/src/features/block-email/component/EmailMessageBody.tsx
index f5358e2244..623f1dab71 100644
--- a/apps/web/src/features/block-email/component/EmailMessageBody.tsx
+++ b/apps/web/src/features/block-email/component/EmailMessageBody.tsx
@@ -176,6 +176,11 @@ export function EmailMessageBody(props: EmailMessageBodyProps) {
// Raw mailto: anchors open the in-app composer instead of the OS mail client
interceptMailtoLinks(messageDiv);
messageDiv.style.userSelect = 'text';
+ // Safari resolves only the -webkit- prefixed form of user-select
+ // (unprefixed shipped in Safari 26.4), and WebKit inherits the app-wide
+ // `user-select: none` through the shadow boundary — without the prefix,
+ // email text isn't selectable in Safari.
+ messageDiv.style.setProperty('-webkit-user-select', 'text');
messageDiv.style.cursor = 'auto';
shadow.appendChild(messageDiv);
return hostContainer;