mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
[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:
committed by
GitHub
parent
d747563915
commit
582e27dbdb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user