@@ -12,7 +12,7 @@ function CalendarDay({ day, events, isToday, isMobile }) {
1212 sx = { {
1313 minHeight : isMobile ? 80 : MIN_CALENDAR_HEIGHT ,
1414 border : 1 ,
15- borderColor : 'divider' ,
15+ borderColor : isToday ? 'primary.main' : 'divider' ,
1616 borderRadius : 1 ,
1717 p : 1 ,
1818 backgroundColor : day . isCurrentMonth ? 'background.paper' : 'var(--hover-bg)' ,
@@ -26,18 +26,31 @@ function CalendarDay({ day, events, isToday, isMobile }) {
2626 aria-label = { `${ day . fullDate . toLocaleDateString ( ) } , ${ events . length } events` }
2727 >
2828 { /* Day Number */ }
29- < Typography
29+ < Box
3030 sx = { {
31- fontSize : isMobile ? '0.75rem' : '0.875rem' ,
32- fontWeight : isToday ? 700 : 500 ,
33- color : day . isCurrentMonth
34- ? ( isToday ? 'var(--text-special-color)' : 'text.primary' )
35- : 'text.disabled' ,
36- mb : 0.5
31+ display : 'inline-flex' ,
32+ alignItems : 'center' ,
33+ justifyContent : 'center' ,
34+ width : isMobile ? 22 : 26 ,
35+ height : isMobile ? 22 : 26 ,
36+ borderRadius : '50%' ,
37+ mb : 0.5 ,
38+ backgroundColor : isToday ? 'primary.main' : 'transparent' ,
3739 } }
3840 >
39- { day . date }
40- </ Typography >
41+ < Typography
42+ sx = { {
43+ fontSize : isMobile ? '0.75rem' : '0.875rem' ,
44+ fontWeight : isToday ? 700 : 500 ,
45+ color : isToday
46+ ? 'primary.contrastText'
47+ : ( day . isCurrentMonth ? 'text.primary' : 'text.disabled' ) ,
48+ lineHeight : 1 ,
49+ } }
50+ >
51+ { day . date }
52+ </ Typography >
53+ </ Box >
4154
4255 { /* Events */ }
4356 < Box sx = { { display : 'flex' , flexDirection : 'column' , gap : 0.5 } } >
0 commit comments