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): remove spurious inner scrollbar on email message bodies (#5173)

Evan Hutnik502e531468eb
diff --git a/apps/web/src/features/block-email/component/EmailMessageBody.tsx b/apps/web/src/features/block-email/component/EmailMessageBody.tsx
index 0c5ae034bd..f5358e2244 100644
--- a/apps/web/src/features/block-email/component/EmailMessageBody.tsx
+++ b/apps/web/src/features/block-email/component/EmailMessageBody.tsx
@@ -287,9 +287,10 @@ export function EmailMessageBody(props: EmailMessageBodyProps) {
// Use zoom instead of transform: scale() so that backgrounds,
// borders, and layout all shrink together without clipping.
messageDiv.style.zoom = `${scale}`;
- } else {
- messageDiv.style.overflow = 'auto';
}
+ // When content fits, leave overflow alone — an overflow:auto wrapper
+ // turns hidden tracking-pixel divs (e.g. max-height:1px) into a
+ // message-height scrollbar.
};
// Re-run on container resize (e.g. orientation change, split resize)