A local-first personal finance app
align month picker years to the month text (#4474)
Tim61364fb84641
diff --git a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-1-chromium-linux.png b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-1-chromium-linux.pngindex 5bc4a0845a..2b2b2f9bcd 100644Binary files a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-1-chromium-linux.png and b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-1-chromium-linux.png differdiff --git a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-2-chromium-linux.png b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-2-chromium-linux.pngindex 0e88086318..cbe8775ad8 100644Binary files a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-2-chromium-linux.png and b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-2-chromium-linux.png differdiff --git a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-3-chromium-linux.png b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-3-chromium-linux.pngindex 48b4e245f8..090d43e805 100644Binary files a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-3-chromium-linux.png and b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-renders-the-summary-information-available-funds-overspent-budgeted-and-for-next-month-3-chromium-linux.png differdiff --git a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-1-chromium-linux.png b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-1-chromium-linux.pngindex dc19a5b85e..21d5d2d7a5 100644Binary files a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-1-chromium-linux.png and b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-1-chromium-linux.png differdiff --git a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-2-chromium-linux.png b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-2-chromium-linux.pngindex 28b19c5ea3..586772a0b3 100644Binary files a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-2-chromium-linux.png and b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-2-chromium-linux.png differdiff --git a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-3-chromium-linux.png b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-3-chromium-linux.pngindex 83703f1dd8..ebe64cdbf5 100644Binary files a/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-3-chromium-linux.png and b/packages/desktop-client/e2e/budget.test.ts-snapshots/Budget-transfer-funds-to-another-category-3-chromium-linux.png differdiff --git a/packages/desktop-client/src/components/budget/MonthPicker.tsx b/packages/desktop-client/src/components/budget/MonthPicker.tsxindex 2085f52f7f..fb8604f02b 100644--- a/packages/desktop-client/src/components/budget/MonthPicker.tsx+++ b/packages/desktop-client/src/components/budget/MonthPicker.tsx@@ -128,6 +128,7 @@ export const MonthPicker = ({<Viewkey={month}style={{+ alignItems: 'center',padding: '3px 3px',width: size === 'big' ? '35px' : '20px',textAlign: 'center',@@ -188,23 +189,25 @@ export const MonthPicker = ({onMouseEnter={() => setHoverId(idx)}onMouseLeave={() => setHoverId(null)}>- {size === 'small' ? monthName[0] : monthName}- {showYearHeader && (- <View- style={{- position: 'absolute',- top: -14,- left: 0,- fontSize: 10,- fontWeight: 'bold',- color: isMonthBudgeted- ? theme.pageText- : theme.pageTextSubdued,- }}- >- {year}- </View>- )}+ <View>+ {size === 'small' ? monthName[0] : monthName}+ {showYearHeader && (+ <View+ style={{+ position: 'absolute',+ top: -16,+ left: 0,+ fontSize: 10,+ fontWeight: 'bold',+ color: isMonthBudgeted+ ? theme.pageText+ : theme.pageTextSubdued,+ }}+ >+ {year}+ </View>+ )}+ </View></View>);})}diff --git a/upcoming-release-notes/4474.md b/upcoming-release-notes/4474.mdnew file mode 100644index 0000000000..fe93007824--- /dev/null+++ b/upcoming-release-notes/4474.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [tim-smart]+---++align the month picker year labels with the month text