From 3edd35ab57ecd114dc890bbbdf5cbd45aae57458 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 7 May 2026 15:23:05 +0200 Subject: [PATCH] fix: hide email hover actions on mobile --- components/email/email-hover-actions.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/email/email-hover-actions.tsx b/components/email/email-hover-actions.tsx index 00423f6b..436431c4 100644 --- a/components/email/email-hover-actions.tsx +++ b/components/email/email-hover-actions.tsx @@ -6,6 +6,7 @@ import type { HoverAction } from "@/stores/settings-store"; import { cn } from "@/lib/utils"; import { Trash2, Star, Mail, MailOpen, Archive, Tag, ShieldAlert } from "lucide-react"; import { useTranslations } from "next-intl"; +import { useIsMobile } from "@/hooks/use-media-query"; interface EmailHoverActionsProps { email: Email; @@ -76,11 +77,13 @@ export function EmailHoverActions({ const hoverActionsMode = useSettingsStore((state) => state.hoverActionsMode); const hoverActionsCorner = useSettingsStore((state) => state.hoverActionsCorner); const t = useTranslations("settings.email_behavior.hover_actions"); + const isMobile = useIsMobile(); const isUnread = !email.keywords?.$seen; const isStarred = email.keywords?.$flagged; const hoverBackgroundClassName = backgroundClassName; + if (isMobile) return null; if (hoverActions.length === 0) return null; const handleAction = (e: React.MouseEvent, action: HoverAction) => {