From 1f078d0a560033e5586b738c8cb5a3c09dfe44c2 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 28 Oct 2026 10:43:52 +0100 Subject: [PATCH] fix: show an attachment's Download and Preview as named buttons the size of Save to Files --- components/email/email-viewer.tsx | 58 ++++++++++++++----------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/components/email/email-viewer.tsx b/components/email/email-viewer.tsx index a2453d2e7..d57e8aa9e 100644 --- a/components/email/email-viewer.tsx +++ b/components/email/email-viewer.tsx @@ -4952,28 +4952,26 @@ export function EmailViewer({ "absolute bg-background/95 opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto group-focus-within:opacity-100 group-focus-within:pointer-events-auto transition-opacity flex items-center justify-center gap-1 px-1.5 rounded-md", thumbUrl ? "top-1 end-1" : "inset-y-0 end-0 rounded-s-none rounded-e-md", )}> - + + {opensPreview && ( - + + )} {canSaveToFiles && attachment.blobId && ( { e.stopPropagation(); setSaveToFilesTarget(attachment); }}> )} - + @@ -5019,28 +5017,26 @@ export function EmailViewer({ {formatFileSize(attachment.size)}
- + + {opensPreview && ( - + + )} {canSaveToFiles && attachment.blobId && ( { e.stopPropagation(); setSaveToFilesTarget(attachment); }}> )} - +
@@ -6019,21 +6015,19 @@ export function EmailViewer({ )}
- + + {opensPreview && ( - + + )}