align month picker years to the month text (#4474)

* align month picker years to the month text

* update vrt

* add upcoming-release-notes
This commit is contained in:
Tim
2025-03-01 15:23:24 +13:00
committed by GitHub
parent 1a5f83d78c
commit 61364fb846
8 changed files with 26 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

@@ -128,6 +128,7 @@ export const MonthPicker = ({
<View
key={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>
);
})}

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [tim-smart]
---
align the month picker year labels with the month text