Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(email): cap reply recipient list to 3 people max (#2176)
Evan Hutnik11cd3f26ab50
diff --git a/js/app/packages/block-email/component/BaseInput.tsx b/js/app/packages/block-email/component/BaseInput.tsxindex ba11e7d610..95c3482506 100644--- a/js/app/packages/block-email/component/BaseInput.tsx+++ b/js/app/packages/block-email/component/BaseInput.tsx@@ -141,6 +141,7 @@ const getRecipientDisplayName = (item: EmailRecipient): string => {};// Shared constants for recipient display - used in both measurement and rendering+const MAX_VISIBLE_RECIPIENTS = 3;const RECIPIENT_SEPARATOR = ',\u00A0'; // comma + non-breaking spaceconst MORE_SUFFIX_TEMPLATE = '+99 more'; // worst-case for measurement@@ -267,7 +268,8 @@ function TruncatedRecipientList(props: {let usedWidth = 0;let count = 0;- for (let i = 0; i < recipients.length; i++) {+ const maxRecipients = Math.min(recipients.length, MAX_VISIBLE_RECIPIENTS);+ for (let i = 0; i < maxRecipients; i++) {const { recipient, prefix } = recipients[i];const displayName = getRecipientDisplayName(recipient);// Show separator if not the last recipient OR if there will be hidden recipients