File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change
1
+ : root {
2
+ --grid-column-start : 0 ;
3
+ }
4
+
1
5
.calendar {
2
6
}
3
7
17
21
justify-content : center;
18
22
}
19
23
20
- @media only screen and (max -width: 824px ) {
24
+ @media only screen and (min -width: 824px ) {
21
25
.firstday {
22
- grid-column-start : none !important ;
26
+ grid-column-start : var ( --grid-column-start ) ;
23
27
}
24
28
}
25
29
Original file line number Diff line number Diff line change @@ -86,13 +86,15 @@ const Calendar: React.FC = () => {
86
86
) ;
87
87
}
88
88
89
+ const css = {
90
+ "--grid-column-start" : firstDayOfTheMonth ,
91
+ } as React . CSSProperties ;
92
+
89
93
return (
90
94
< div
91
95
key = { day + 1 }
92
96
className = { dayClass }
93
- style = { {
94
- gridColumnStart : day === 0 ? firstDayOfTheMonth : undefined ,
95
- } }
97
+ style = { day === 0 ? css : undefined }
96
98
>
97
99
{ winner && (
98
100
< div className = { styles . avatar } >
You can’t perform that action at this time.
0 commit comments