A local-first personal finance app
Change net worth graph to show more detail in compact card view (#2132)
Jasond9aeb8db1e36
diff --git a/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-1-chromium-linux.png b/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-1-chromium-linux.pngindex cf8cc81acb..6ad0736f6f 100644Binary files a/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-1-chromium-linux.png and b/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-1-chromium-linux.png differdiff --git a/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-2-chromium-linux.png b/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-2-chromium-linux.pngindex 855c049200..4052e48c43 100644Binary files a/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-2-chromium-linux.png and b/packages/desktop-client/e2e/reports.test.js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-2-chromium-linux.png differdiff --git a/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx b/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsxindex d17e37ac1a..4da88b194d 100644--- a/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx+++ b/packages/desktop-client/src/components/reports/graphs/NetWorthGraph.tsx@@ -126,22 +126,20 @@ function NetWorthGraph({{compact ? null : (<CartesianGrid strokeDasharray="3 3" vertical={false} />)}- {compact ? null : (- <XAxis- dataKey="x"- tick={{ fill: theme.pageText }}- tickLine={{ stroke: theme.pageText }}- />- )}- {compact ? null : (- <YAxis- dataKey="y"- domain={['auto', 'auto']}- tickFormatter={tickFormatter}- tick={{ fill: theme.pageText }}- tickLine={{ stroke: theme.pageText }}- />- )}+ <XAxis+ dataKey="x"+ hide={compact}+ tick={{ fill: theme.pageText }}+ tickLine={{ stroke: theme.pageText }}+ />+ <YAxis+ dataKey="y"+ domain={['auto', 'auto']}+ hide={compact}+ tickFormatter={tickFormatter}+ tick={{ fill: theme.pageText }}+ tickLine={{ stroke: theme.pageText }}+ /><Tooltipcontent={<CustomTooltip />}formatter={numberFormatterTooltip}diff --git a/upcoming-release-notes/2132.md b/upcoming-release-notes/2132.mdnew file mode 100644index 0000000000..78a90f225e--- /dev/null+++ b/upcoming-release-notes/2132.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [jasonmichalski]+---++Fix net worth graph to show more detail in compact card view