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): allow selecting the subject's final word (#9412)

gbirman4014ccd3e697
diff --git a/apps/web/src/features/email-thread/components/email-thread-title.tsx b/apps/web/src/features/email-thread/components/email-thread-title.tsx
index 3bba2cc832..13227d07f6 100644
--- a/apps/web/src/features/email-thread/components/email-thread-title.tsx
+++ b/apps/web/src/features/email-thread/components/email-thread-title.tsx
@@ -30,7 +30,7 @@ export function EmailThreadTitle(props: {
onMouseLeave={() => setTitleHovered(false)}
>
{cluster().lead}
- <span class={cluster().lead ? 'whitespace-nowrap' : undefined}>
+ <span class={cn('select-text', cluster().lead && 'whitespace-nowrap')}>
{cluster().last}
<Show
when={props.trailing}
diff --git a/docs/agent-guide/email.md b/docs/agent-guide/email.md
index 93177274cf..2578c02a6c 100644
--- a/docs/agent-guide/email.md
+++ b/docs/agent-guide/email.md
@@ -524,10 +524,13 @@ In the new Email view, ordinary row activation opens the thread inside
`/app/component/mail`. On desktop the thread's header has a Back arrow instead
of breadcrumbs; it returns to the filtered list (hidden in the reading pane,
where the list is already beside the thread). The subject, tags and
-participants stay put while only the messages scroll. Pressing `Escape` in the open thread
-with focus outside any input does the same once there is nothing left to unwind
-(an open reply, an expanded body, or a focused message each take one `Escape`
-first); the list keeps the row you came from focused and comes back at the same
+participants stay put while only the messages scroll. The full subject, including
+its last word beside the title action, supports text selection. Pressing `Escape`
+in the open thread with focus outside any input returns to the originating list
+once there is nothing left to unwind (an open reply, an expanded body, or a
+focused message each take one `Escape` first). In the reading pane, it restores
+list focus without closing the thread. The list keeps the row you came from
+focused and comes back at the same
scroll position, scrolling only if j/k in the thread moved focus off screen. If
the focused row leaves the list without a list `e` (a reply in Signal marks it
done, or another device archives it), focus moves to the row that took its