@@ -54,21 +54,21 @@ export default function Calendar({
54
54
) ;
55
55
56
56
return (
57
- < div className = "flex h-full w-full max-[1200px]:flex-col max-[1200px]:gap-y-4 max-[1200px]:items-center max-[1200px]:relative " >
58
- < div className = "min-w-[400px] max-w-[400px] p-6 h-full min-[1200px]: border-r-2 min-[1200px]:min-w-[600px] min-[1200px]:px-28 min-[1470px]:min-w-[400px] min-[1470px]:px-6 border-base-100 flex flex-col items-center " >
57
+ < div className = "flex h-full w-full max-[1200px]:relative max-[1200px]:flex-col max-[1200px]:items-center max-[1200px]:gap-y-4 " >
58
+ < div className = "flex h-full min-w-[400px] max-w-[400px] flex-col items-center border-base-100 p-6 min-[1200px]:min-w-[600px] min-[1200px]:border-r-2 min-[1200px]: px-28 min-[1470px]:min-w-[400px] min-[1470px]:px-6" >
59
59
< div className = "flex w-full items-center" >
60
- < div className = "flex gap-10 items-center w-full justify-center min-[1200px]:relative" >
60
+ < div className = "flex w-full items-center justify-center gap-10 min-[1200px]:relative" >
61
61
< ArrowLeftIcon
62
- className = "w-5 h-5 cursor-pointer hover:scale-105 transition-all absolute left-[14px] max-[1200px]:left-12"
62
+ className = "absolute left-[14px] h-5 w-5 cursor-pointer transition-all hover:scale-105 max-[1200px]:left-12"
63
63
onClick = { ( ) => {
64
64
onArrowClick ( - 1 ) ;
65
65
} }
66
66
/>
67
- < h1 className = "text-2xl select-none font-semibold" >
67
+ < h1 className = "select-none text-2xl font-semibold" >
68
68
{ currentMonth } { currentYear }
69
69
</ h1 >
70
70
< ArrowRightIcon
71
- className = "w-5 h-5 cursor-pointer hover:scale-105 transition-all absolute right-[14px] max-[1200px]:right-12"
71
+ className = "absolute right-[14px] h-5 w-5 cursor-pointer transition-all hover:scale-105 max-[1200px]:right-12"
72
72
onClick = { ( ) => {
73
73
onArrowClick ( 1 ) ;
74
74
} }
@@ -79,14 +79,14 @@ export default function Calendar({
79
79
{ days . map ( ( day ) => (
80
80
< h1
81
81
key = { day }
82
- className = "text-sm text-center h-14 w-14 grid place-content-center text-base-300 select-none "
82
+ className = "grid h-14 w-14 select-none place-content-center text-center text-sm text-base-300 "
83
83
>
84
84
{ day }
85
85
</ h1 >
86
86
) ) }
87
87
</ div >
88
88
89
- < div className = "grid grid-cols-7 border border-base-100 max-w-[352px] " >
89
+ < div className = "grid max-w-[352px] grid-cols-7 border border-base-100" >
90
90
{ generateDate ( today . getMonth ( ) , today . getFullYear ( ) ) . map (
91
91
( { date, currentMonth, today } ) => (
92
92
< div
@@ -120,7 +120,7 @@ export default function Calendar({
120
120
} }
121
121
>
122
122
< RocketLaunchIcon
123
- className = { `w-4 h-4 absolute left-0 right -0 top-[1px] m-auto cursor-pointer ${
123
+ className = { `absolute inset-x -0 top-px m-auto h-4 w-4 cursor-pointer ${
124
124
"text-" + getCalendarElementColor ( date , currentMonth )
125
125
} `}
126
126
/>
@@ -134,18 +134,18 @@ export default function Calendar({
134
134
135
135
< Legend />
136
136
</ div >
137
- < div className = "h-full w-full flex flex-col justify-between p-6" >
137
+ < div className = "flex h-full w-full flex-col justify-between p-6" >
138
138
< div >
139
- < h1 className = "text-lg font-semibold pb-3 " > { selectedDate } </ h1 >
139
+ < h1 className = "pb-3 text-lg font-semibold" > { selectedDate } </ h1 >
140
140
< div className = "max-[1500px]:w-[90px] max-[1470px]:w-full" >
141
141
{ getDayLabel ( ) ? (
142
- < p className = "rounded-lg bg-primary-content p-3 text-base font-medium w-full " >
142
+ < p className = "w-full rounded-lg bg-primary-content p-3 text-base font-medium" >
143
143
{ getDayLabel ( ) }
144
144
</ p >
145
145
) : null }
146
146
{ selectedDate && selectedSprint ? (
147
147
< p
148
- className = { `rounded-lg bg-primary-content p-3 text-base font-medium w-full ${
148
+ className = { `w-full rounded-lg bg-primary-content p-3 text-base font-medium ${
149
149
getDayLabel ( ) ? "mt-4" : ""
150
150
} `}
151
151
>
@@ -176,7 +176,7 @@ export default function Calendar({
176
176
</ div >
177
177
</ div >
178
178
< Button
179
- className = { `self-end p-1 h-[27px] mt-4 rounded text-base font-medium hover:bg-neutral ${
179
+ className = { `mt-4 h-[27px] self-end rounded p-1 text-base font-medium hover:bg-neutral ${
180
180
isSameDay ( selectDate , userDate ) ? "bg-primary" : "bg-neutral-focus"
181
181
} `}
182
182
onClick = { ( ) => {
0 commit comments