From 78bcac95ed00ac0a3453819d9b82b51a9e3f051d Mon Sep 17 00:00:00 2001 From: "passabilities.eth" Date: Wed, 23 Jul 2025 12:34:34 -0500 Subject: [PATCH] [Enhancement] Disable Sidebar Tooltip on Touchscreen Device (#5362) * check if device is not touchscreen to show account sidebar tooltip * release notes --- packages/desktop-client/src/components/sidebar/Account.tsx | 6 ++++-- upcoming-release-notes/5362.md | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/5362.md diff --git a/packages/desktop-client/src/components/sidebar/Account.tsx b/packages/desktop-client/src/components/sidebar/Account.tsx index e082befe9f..d5df8190b5 100644 --- a/packages/desktop-client/src/components/sidebar/Account.tsx +++ b/packages/desktop-client/src/components/sidebar/Account.tsx @@ -114,8 +114,10 @@ export function Account>({ const [isEditing, setIsEditing] = useState(false); const accountNote = useNotes(`account-${account?.id}`); - const canDeviceHover = window.matchMedia('(hover: hover)').matches; - const needsTooltip = !!account?.id && canDeviceHover; + const isTouchDevice = + window.matchMedia('(hover: none)').matches || + window.matchMedia('(pointer: coarse)').matches; + const needsTooltip = !!account?.id && !isTouchDevice; const accountRow = (