From 2f8d83b5b70c2b348a9edda67e4336a80c762c79 Mon Sep 17 00:00:00 2001 From: alma Date: Wed, 16 Apr 2025 19:03:14 +0200 Subject: [PATCH] Neah version mail design fix 7 --- app/mail/page.tsx | 49 ++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 5d5c5ca..d87a306 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -737,64 +737,65 @@ export default function MailPage() { } }; - // Update the email list header with better aligned checkbox and bulk actions + // Update the email list header with inline bulk actions const renderEmailListHeader = () => (
- {/* Main header row */}
+ {/* Left side with checkbox and title */}
0 && selectedEmails.length === emails.length} onCheckedChange={toggleSelectAll} className="mt-0.5" /> -

- {currentView === 'INBOX' ? 'Inbox' : - currentView === 'starred' ? 'Starred' : - currentView.charAt(0).toUpperCase() + currentView.slice(1).toLowerCase()} -

+

Inbox

+ + {emails.length} emails +
- - {emails.length} emails - - - {/* Bulk actions aligned to the right */} - {selectedEmails.length > 0 && ( -
+ + {/* Bulk actions right after the title */} + {selectedEmails.length > 0 ? ( +
- )} + ) : null}
);