From e86d6a9e372feada0602f3dd9df7398aeb3a32ca Mon Sep 17 00:00:00 2001 From: alma Date: Wed, 16 Apr 2025 18:36:47 +0200 Subject: [PATCH] Neah version mail design fix 3 ???? --- app/mail/page.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 1873440..400d1fd 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -1106,7 +1106,18 @@ export default function MailPage() {
- {currentView === 'Sent' ? email.to : (email.fromName || email.from)} + {currentView === 'Sent' ? email.to : ( + (() => { + // Check if email is in format "name " + const fromMatch = email.from.match(/^([^<]+)\s*<([^>]+)>$/); + if (fromMatch) { + // If we have both name and email, return just the name + return fromMatch[1].trim(); + } + // If it's just an email address, return the full email + return email.from; + })() + )}