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], )} > -
+
{actionButtons}
@@ -155,8 +161,14 @@ export function EmailHoverActions({
-
-
+
+
{actionButtons}
diff --git a/components/email/email-list-item.tsx b/components/email/email-list-item.tsx index b0d5461e..5863557e 100644 --- a/components/email/email-list-item.tsx +++ b/components/email/email-list-item.tsx @@ -242,6 +242,7 @@ export function EmailListItem({ email, selected, onClick, onContextMenu, onToggl {/* Hover Quick Actions */} ( {/* Hover Quick Actions */} onToggleStar(latestEmail) : undefined} onMarkAsRead={onMarkAsRead ? (read) => onMarkAsRead(latestEmail, read) : undefined} onDelete={onDelete ? () => onDelete(latestEmail) : undefined}