Skip to content

A local-first personal finance app

[Bug]: Mobile Header (#1550)

Ziga Macelec52900e71311
diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.js b/packages/desktop-client/src/components/budget/MobileBudgetTable.js
index 255c7642b3..0242523f39 100644
--- a/packages/desktop-client/src/components/budget/MobileBudgetTable.js
+++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.js
@@ -896,7 +896,7 @@ export class BudgetTable extends Component {
<View
style={{
flexDirection: 'row',
- flex: '1 0 auto',
+ flex: '0 0 auto',
padding: 10,
paddingRight: 14,
backgroundColor: 'white',
@@ -914,7 +914,7 @@ export class BudgetTable extends Component {
)}
<View style={{ flex: 1 }} />
- <View style={{ width: 90 }}>
+ <View style={{ width: 90, justifyContent: 'center' }}>
<Label title="BUDGETED" style={{ color: colors.n1 }} />
<CellValue
binding={reportBudget.totalBudgetedExpense}
@@ -928,7 +928,12 @@ export class BudgetTable extends Component {
}}
/>
</View>
- <View style={{ width: 90 }}>
+ <View
+ style={{
+ width: 90,
+ justifyContent: 'center',
+ }}
+ >
<Label title="BALANCE" style={{ color: colors.n1 }} />
<CellValue
binding={rolloverBudget.totalBalance}
diff --git a/upcoming-release-notes/1550.md b/upcoming-release-notes/1550.md
new file mode 100644
index 0000000000..24e5cb8d4c
--- /dev/null
+++ b/upcoming-release-notes/1550.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [zigamacele]
+---
+
+Fixed expanding mobile header, aligned elements center