From d6b0714b4eb0c63634f9a3c90426b8d005666a4b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 28 Mar 2026 00:42:42 +0100 Subject: [PATCH] fix: match hover action background to selected row state --- components/email/email-hover-actions.tsx | 18 +++++++++++++++--- components/email/email-list-item.tsx | 1 + components/email/thread-list-item.tsx | 2 ++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/components/email/email-hover-actions.tsx b/components/email/email-hover-actions.tsx index 3d8a9441..7c17334d 100644 --- a/components/email/email-hover-actions.tsx +++ b/components/email/email-hover-actions.tsx @@ -9,6 +9,7 @@ import { useTranslations } from "next-intl"; interface EmailHoverActionsProps { email: Email; + backgroundClassName?: string; onToggleStar?: () => void; onMarkAsRead?: (read: boolean) => void; onDelete?: () => void; @@ -63,6 +64,7 @@ const CORNER_CLASSES = { export function EmailHoverActions({ email, + backgroundClassName = "bg-muted", onToggleStar, onMarkAsRead, onDelete, @@ -77,6 +79,7 @@ export function EmailHoverActions({ const isUnread = !email.keywords?.$seen; const isStarred = email.keywords?.$flagged; + const hoverBackgroundClassName = backgroundClassName; if (hoverActions.length === 0) return null; @@ -144,7 +147,10 @@ export function EmailHoverActions({ CORNER_CLASSES[hoverActionsCorner], )} > -