Improved calendar day styling. Large numbers, now today marker and other tweaks.

This commit is contained in:
2025-09-23 23:01:39 +00:00
parent bfe5b53320
commit d1f890d876
2 changed files with 92 additions and 44 deletions
+12
View File
@@ -192,6 +192,17 @@ function formatTodayString(date) {
return formatted.charAt(0).toUpperCase() + formatted.slice(1)
}
/**
* Format date as compact string for day cell corner (e.g., "Mon 15 Jan")
*/
function formatDateCompact(date) {
return date.toLocaleDateString(undefined, {
weekday: 'short',
day: 'numeric',
month: 'short'
}).replace(", ", " ")
}
export {
// constants
monthAbbr,
@@ -218,6 +229,7 @@ export {
formatDateRange,
formatDateShort,
formatDateLong,
formatDateCompact,
formatTodayString,
lunarPhaseSymbol,
// iso helpers re-export