From face095a836d33295207c9d95c7ac7971c23548c Mon Sep 17 00:00:00 2001
From: Linus Rath <139418639+rathlinus@users.noreply.github.com>
Date: Sun, 11 Oct 2026 17:53:43 +0200
Subject: [PATCH] fix: align the contact sidebar header with the toolbar and
use app buttons for its actions
---
components/email/email-viewer.tsx | 74 ++++++++++++++++++-------------
1 file changed, 43 insertions(+), 31 deletions(-)
diff --git a/components/email/email-viewer.tsx b/components/email/email-viewer.tsx
index 319cafdef..30e931b4f 100644
--- a/components/email/email-viewer.tsx
+++ b/components/email/email-viewer.tsx
@@ -408,16 +408,21 @@ export function ContactSidebarPanel({
return (
- {/* Header */}
-
-
{t('contact_sidebar.title')}
-
+ {/* Header - h-14 with the border on the wrapper so it lines up with
+ the viewer toolbar and the folder sidebar header. */}
+
+
+
{t('contact_sidebar.title')}
+
+
{/* Content */}
@@ -447,34 +452,41 @@ export function ContactSidebarPanel({
- {/* Quick actions */}
-
+ {/* Quick actions - styled like the shared Button (default + outline,
+ size sm) since MailtoLink renders an anchor, not a Button. */}
+
-
+
{t('contact_sidebar.action_email')}
-
- {contact && onEditContact && (
-
+ {contact && onEditContact && (
+
+
+ {tCommon('edit')}
+
+ )}
+
{/* Details sections */}