A local-first personal finance app
[Feature] Only Show Sidebar Tooltip on Desktop (#5352)
passabilities.eth582e27dbdba6
diff --git a/packages/desktop-client/src/components/sidebar/Account.tsx b/packages/desktop-client/src/components/sidebar/Account.tsxindex 36be0443ee..e082befe9f 100644--- a/packages/desktop-client/src/components/sidebar/Account.tsx+++ b/packages/desktop-client/src/components/sidebar/Account.tsx@@ -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 = (<Viewdiff --git a/upcoming-release-notes/5352.md b/upcoming-release-notes/5352.mdnew file mode 100644index 0000000000..ac5027c921--- /dev/null+++ b/upcoming-release-notes/5352.md@@ -0,0 +1,6 @@+---+category: Features+authors: [passabilities]+---++Only show sidebar tooltip on desktop