[PR #5362] [MERGED] [Enhancement] Disable Sidebar Tooltip on Touchscreen Device #5895

Closed
opened 2026-02-28 21:20:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5362
Author: @passabilities
Created: 7/21/2025
Status: Merged
Merged: 7/23/2025
Merged by: @MikesGlitch

Base: masterHead: hide-touchscreen-sidebar-tooltip


📝 Commits (2)

  • 9d62eb9 check if device is not touchscreen to show account sidebar tooltip
  • 470abb7 release notes

📊 Changes

2 files changed (+10 additions, -2 deletions)

View changed files

📝 packages/desktop-client/src/components/sidebar/Account.tsx (+4 -2)
upcoming-release-notes/5362.md (+6 -0)

📄 Description

This is an addition to my previous PR #5352 that only checks the hover media query:

window.matchMedia('(hover: none)').matches

but this does not work for some touchscreen devices (i.e. newer Samsung phones/tablets)

however this does work

window.matchMedia('(pointer: coarse)').matches

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer#coarse


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5362 **Author:** [@passabilities](https://github.com/passabilities) **Created:** 7/21/2025 **Status:** ✅ Merged **Merged:** 7/23/2025 **Merged by:** [@MikesGlitch](https://github.com/MikesGlitch) **Base:** `master` ← **Head:** `hide-touchscreen-sidebar-tooltip` --- ### 📝 Commits (2) - [`9d62eb9`](https://github.com/actualbudget/actual/commit/9d62eb9c25342df5a838e007db1800d6eea783d8) check if device is not touchscreen to show account sidebar tooltip - [`470abb7`](https://github.com/actualbudget/actual/commit/470abb7681ddeb94902cde8e757faa6f3bcd358f) release notes ### 📊 Changes **2 files changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/sidebar/Account.tsx` (+4 -2) ➕ `upcoming-release-notes/5362.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> This is an addition to my previous PR #5352 that only checks the hover media query: ```ts window.matchMedia('(hover: none)').matches ``` but this does not work for some touchscreen devices (i.e. newer Samsung phones/tablets) however this does work ```ts window.matchMedia('(pointer: coarse)').matches ``` Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer#coarse --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:20:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5895