From 8184b75196fcf7784a77a3dac4e5fd2904be0d98 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 4 Nov 2026 06:37:59 +0100 Subject: [PATCH] fix: leave the message size out of the reader header --- .../__tests__/reader-spam-trash-actions.test.tsx | 7 +++++++ components/email/email-viewer.tsx | 15 +++------------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/components/email/__tests__/reader-spam-trash-actions.test.tsx b/components/email/__tests__/reader-spam-trash-actions.test.tsx index b806a9eea..815449deb 100644 --- a/components/email/__tests__/reader-spam-trash-actions.test.tsx +++ b/components/email/__tests__/reader-spam-trash-actions.test.tsx @@ -103,3 +103,10 @@ describe('reader toolbar in the Inbox', () => { }); }); +describe('reader header', () => { + it('shows no message size (the details have it)', async () => { + render(); + await act(async () => { await new Promise((r) => setTimeout(r, 10)); }); + expect(document.body.textContent).not.toContain('2.1 KB'); + }); +}); diff --git a/components/email/email-viewer.tsx b/components/email/email-viewer.tsx index 06017e6e1..b3ecfc7da 100644 --- a/components/email/email-viewer.tsx +++ b/components/email/email-viewer.tsx @@ -5055,16 +5055,12 @@ ${printWatermark ? printWatermark.html : ''} )} {/* Date/time on the right of subject row - hidden on mobile, shown next to sender. - Mountain View puts it on the sender's row instead, and shows no size. */} + Mountain View puts it on the sender's row instead. The size is + in the details. */}
{formatDateTime(emailDisplayDate(email), timeFormat, { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' })} - {email.size > 0 && ( -
- {formatFileSize(email.size)} -
- )}
@@ -5415,18 +5411,13 @@ ${printWatermark ? printWatermark.html : ''} - {/* Date/time + size on the right (mobile) */} + {/* Date/time on the right (mobile); the size is in the details */}
{mvMobileViewer ? formatDate(emailDisplayDate(email)) : formatDateTime(emailDisplayDate(email), timeFormat, { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' })} - {email.size > 0 && !mvMobileViewer && ( -
- {formatFileSize(email.size)} -
- )}
{/* Mountain View phone: reply from the top of the message, not only from the row under a long body (#1475). */}