Skip to content

A local-first personal finance app

fix: Mobile menu blocks items #2040 (#2352)

Hinerangi Courtenay53a61000a469
diff --git a/packages/desktop-client/src/components/accounts/MobileAccounts.jsx b/packages/desktop-client/src/components/accounts/MobileAccounts.jsx
index 158dbec52f..4087fdbe0d 100644
--- a/packages/desktop-client/src/components/accounts/MobileAccounts.jsx
+++ b/packages/desktop-client/src/components/accounts/MobileAccounts.jsx
@@ -13,6 +13,7 @@ import { Button } from '../common/Button';
import { Text } from '../common/Text';
import { TextOneLine } from '../common/TextOneLine';
import { View } from '../common/View';
+import { ROW_HEIGHT as MOBILE_NAV_HEIGHT } from '../mobile/MobileNavTabs';
import { Page } from '../Page';
import { PullToRefresh } from '../responsive/PullToRefresh';
import { CellValue } from '../spreadsheet/CellValue';
@@ -175,7 +176,11 @@ function AccountList({
</Button>
}
padding={0}
- style={{ flex: 1, backgroundColor: theme.mobilePageBackground }}
+ style={{
+ flex: 1,
+ backgroundColor: theme.mobilePageBackground,
+ paddingBottom: MOBILE_NAV_HEIGHT,
+ }}
>
{accounts.length === 0 && <EmptyMessage />}
<PullToRefresh onRefresh={onSync}>
diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.jsx b/packages/desktop-client/src/components/budget/MobileBudgetTable.jsx
index 93346b51bc..a7214cf121 100644
--- a/packages/desktop-client/src/components/budget/MobileBudgetTable.jsx
+++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.jsx
@@ -24,6 +24,7 @@ import { Label } from '../common/Label';
import { Menu } from '../common/Menu';
import { Text } from '../common/Text';
import { View } from '../common/View';
+import { ROW_HEIGHT as MOBILE_NAV_HEIGHT } from '../mobile/MobileNavTabs';
import { Page } from '../Page';
import { PullToRefresh } from '../responsive/PullToRefresh';
import { CellValue } from '../spreadsheet/CellValue';
@@ -1362,7 +1363,12 @@ export function BudgetTable({
// style={{ backgroundColor: colors.n10 }}
// automaticallyAdjustContentInsets={false}
// >
- <View data-testid="budget-table">
+ <View
+ data-testid="budget-table"
+ style={{
+ paddingBottom: MOBILE_NAV_HEIGHT,
+ }}
+ >
<BudgetGroups
type={type}
categoryGroups={categoryGroups}
diff --git a/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx b/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx
index 93476f7442..2a78185d60 100644
--- a/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx
+++ b/packages/desktop-client/src/components/mobile/MobileNavTabs.tsx
@@ -20,7 +20,7 @@ import { theme, styles, type CSSProperties } from '../../style';
import { View } from '../common/View';
import { useScroll } from '../ScrollProvider';
-const ROW_HEIGHT = 70;
+export const ROW_HEIGHT = 70;
const COLUMN_COUNT = 3;
export function MobileNavTabs() {
diff --git a/upcoming-release-notes/2352.md b/upcoming-release-notes/2352.md
new file mode 100644
index 0000000000..e9e5f18a57
--- /dev/null
+++ b/upcoming-release-notes/2352.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [skymaiden]
+---
+
+Fix overlapping mobile nav bar.