[Feature] Only Show Sidebar Tooltip on Desktop (#5352)

* only show sidebar tooltip on desktop

* release notes

* Update upcoming-release-notes/5352.md

Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>

* replace with media query checks

---------

Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
This commit is contained in:
passabilities.eth
2025-07-20 23:00:19 -05:00
committed by GitHub
parent d747563915
commit 582e27dbdb
2 changed files with 8 additions and 1 deletions

View File

@@ -114,7 +114,8 @@ export function Account<FieldName extends SheetFields<'account'>>({
const [isEditing, setIsEditing] = useState(false);
const accountNote = useNotes(`account-${account?.id}`);
const needsTooltip = !!account?.id;
const canDeviceHover = window.matchMedia('(hover: hover)').matches;
const needsTooltip = !!account?.id && canDeviceHover;
const accountRow = (
<View