align month picker years to the month text (#4474)
* align month picker years to the month text * update vrt * add upcoming-release-notes
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
@@ -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>
|
||||
);
|
||||
})}
|
||||
|
||||
6
upcoming-release-notes/4474.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [tim-smart]
|
||||
---
|
||||
|
||||
align the month picker year labels with the month text
|
||||