From f071731985e910976697e206e4c748a5e7a4e8d0 Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Mon, 18 May 2026 08:14:17 -0400 Subject: [PATCH] fix(desktop): simplify inbox experiment header actions Consolidate inbox conversation header actions into the more menu and align it closer to the right edge. Co-authored-by: Cursor --- .../src/features/home/ui/InboxDetailPane.tsx | 94 +++++++------------ 1 file changed, 32 insertions(+), 62 deletions(-) diff --git a/desktop/src/features/home/ui/InboxDetailPane.tsx b/desktop/src/features/home/ui/InboxDetailPane.tsx index 5e7158c03d..33b3c33005 100644 --- a/desktop/src/features/home/ui/InboxDetailPane.tsx +++ b/desktop/src/features/home/ui/InboxDetailPane.tsx @@ -1,5 +1,4 @@ import { - ArrowUpRight, CheckCheck, Mail, MailOpen, @@ -24,6 +23,7 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, + DropdownMenuSeparator, DropdownMenuTrigger, } from "@/shared/ui/dropdown-menu"; import { @@ -187,7 +187,7 @@ export function InboxDetailPane({ ref={detailPaneRef} >
-
+
{canOpenChannel && contextChannelId && onOpenContext ? (
@@ -298,42 +281,18 @@ export function InboxDetailPane({ ); } -function HeaderIconAction({ - icon, - label, - onClick, -}: { - icon: React.ReactNode; - label: string; - onClick?: () => void; -}) { - const button = ( - - ); - - return ( - - {button} - {label} - - ); -} - function HeaderMoreMenu({ + canDelete, isDeletingMessage, + isDone, onDelete, + onToggleDone, }: { + canDelete: boolean; isDeletingMessage: boolean; + isDone: boolean; onDelete: () => void; + onToggleDone: () => void; }) { const trigger = (