@@ -163,8 +163,8 @@ export function PlanItem({
163163 className = "relative flex aspect-square flex-col shadow-sm transition-all hover:shadow-md"
164164 ref = { ref }
165165 >
166- < CardHeader className = "space-y-1 p-4" >
167- < CardTitle className = "w-5/6 text-balance text-lg leading-4" >
166+ < CardHeader className = "space-y-1 p-2 min-[520px]:p- 4" >
167+ < CardTitle className = "leading-2 w-5/6 text-balance text-sm min-[520px]:text- lg min-[520px]: leading-4" >
168168 { name }
169169 </ CardTitle >
170170 < CardDescription >
@@ -176,8 +176,8 @@ export function PlanItem({
176176 ) }
177177 </ CardDescription >
178178 </ CardHeader >
179- < CardContent className = "flex-1 p-4 pt-0" >
180- < p className = "text-sm" >
179+ < CardContent className = "flex-1 p-2 pt-0 text-xs min-[520px]:p-4 min-[520px]:text-sm " >
180+ < p >
181181 { registrationsCount || registrationsLength } { " " }
182182 { pluralize (
183183 registrationsCount || registrationsLength ,
@@ -186,11 +186,11 @@ export function PlanItem({
186186 "rejestracji" ,
187187 ) }
188188 </ p >
189- < p className = "text-sm" >
189+ < p >
190190 { coursesCount || coursesLength } { " " }
191191 { pluralize ( coursesCount || coursesLength , "kurs" , "kursy" , "kursów" ) }
192192 </ p >
193- < p className = "text-sm " >
193+ < p className = "hidden min-[380px]:block " >
194194 { groupsCount || groupCountLocal } { " " }
195195 { pluralize (
196196 groupsCount || groupCountLocal ,
@@ -200,10 +200,13 @@ export function PlanItem({
200200 ) }
201201 </ p >
202202 </ CardContent >
203- < CardFooter className = "justify-between gap-2 border-t p-3" >
203+ < CardFooter className = "justify-between gap-2 border-t p-2 min-[520px]:p- 3" >
204204 < DropdownMenu open = { dropdownOpened } onOpenChange = { setDropdownOpened } >
205205 < DropdownMenuTrigger asChild = { true } >
206- < Button variant = "secondary" size = "iconSm" >
206+ < Button
207+ variant = "secondary"
208+ className = "h-7 w-7 px-0 min-[520px]:h-9 min-[520px]:w-9"
209+ >
207210 < Icons . EllipsisVertical className = "size-4" />
208211 </ Button >
209212 </ DropdownMenuTrigger >
@@ -234,12 +237,18 @@ export function PlanItem({
234237 </ DropdownMenuContent >
235238 </ DropdownMenu >
236239 { onlineOnly ? (
237- < Button size = "sm" onClick = { createFromOnlinePlan } >
240+ < Button
241+ className = "h-7 px-3 py-1.5 min-[520px]:h-9 min-[520px]:rounded-md min-[520px]:px-3"
242+ onClick = { createFromOnlinePlan }
243+ >
238244 < Icons . Pencil className = "h-4 w-4" />
239- Edytuj
245+ < p className = "hidden min-[380px]:block" > Edytuj</ p >
240246 </ Button >
241247 ) : (
242- < Button size = "sm" asChild = { true } >
248+ < Button
249+ className = "h-7 px-3 py-1.5 min-[520px]:h-9 min-[520px]:rounded-md min-[520px]:px-3"
250+ asChild = { true }
251+ >
243252 < Link href = { `/plans/edit/${ id } ` } >
244253 < Icons . Pencil className = "h-4 w-4" />
245254 Edytuj
@@ -251,10 +260,7 @@ export function PlanItem({
251260 < StatusIcon synced = { synced } onlineId = { onlineId } />
252261
253262 < Dialog open = { dialogOpened } onOpenChange = { setDialogOpened } >
254- < DialogContent
255- className = "sm:max-w-[425px]"
256- aria-describedby = { undefined }
257- >
263+ < DialogContent className = "max-w-[425px]" aria-describedby = { undefined } >
258264 < DialogHeader >
259265 < DialogTitle > Czy na pewno chcesz usunąć plan?</ DialogTitle >
260266 < DialogDescription > Tej akcji nie da się cofnąć!</ DialogDescription >
0 commit comments