@@ -41,37 +41,37 @@ export function TrackPreview({ showPreview, setShowPreview, track }: TrackPrevie
41
41
return (
42
42
< Dialog open = { showPreview } onOpenChange = { ( ) => setShowPreview ( false ) } >
43
43
< DialogContent className = "flex items-center gap-4" >
44
- < div className = "flex flex-col gap-4 w-full " >
45
- < img src = { track . image } className = "h-[25vh] w-full object-cover rounded-lg" />
46
- < div className = "flex flex-col gap-4 bg-primary/5 rounded-lg p-4" >
44
+ < div className = "flex w-full flex-col gap-4" >
45
+ < img src = { track . image } className = "h-[25vh] w-full rounded-lg object-contain " />
46
+ < div className = "bg-primary/5 flex flex-col gap-4 rounded-lg p-4" >
47
47
< div className = "flex flex-col gap-4" >
48
- < h3 className = "text-xl md: text-2xl font-semibold w-full tracking-tight" > { track . title } </ h3 >
48
+ < h3 className = "w-full text-xl font-semibold tracking-tight md:text-2xl " > { track . title } </ h3 >
49
49
< div className = "flex items-center gap-4" >
50
50
{ track . categories . map ( ( item : any , idx : number ) => (
51
51
< p
52
52
key = { item . category . id }
53
- className = "bg-secondary/25 border border -primary/10 rounded-lg px-3 py-2 text-sm w-fit cursor-default "
53
+ className = "bg-secondary/25 border-primary/10 w-fit cursor-default rounded-lg border px-3 py-2 text-sm"
54
54
>
55
55
{ item . category . category } { " " }
56
56
</ p >
57
57
) ) }
58
58
</ div >
59
59
</ div >
60
- < p className = "md: text-lg tracking-tighter line-clamp-3 text-primary/60 " > { truncatedDescription } </ p >
60
+ < p className = "text-primary/60 line-clamp-3 tracking-tighter md: text-lg " > { truncatedDescription } </ p >
61
61
</ div >
62
- < div className = "flex flex-col gap-4 w-full " >
63
- < div className = "flex gap-2 items-center" >
64
- < p className = "flex tracking-tighter gap-2 text-primary text-lg md:text-xl font-semibold " >
62
+ < div className = "flex w-full flex-col gap-4" >
63
+ < div className = "flex items-center gap-2 " >
64
+ < p className = "text-primary flex gap-2 text-lg font-semibold tracking-tighter md:text-xl" >
65
65
{ track . problems . length } Chapters
66
66
</ p >
67
- < p className = "flex tracking-tight gap-2 text-primary/60 md:text-lg" >
67
+ < p className = "text-primary/60 flex gap-2 tracking-tight md:text-lg" >
68
68
{ formatDistanceToNow ( new Date ( track . createdAt ) , { addSuffix : true } ) }
69
69
</ p >
70
70
</ div >
71
- < div className = "max-h-[25vh] overflow-y-auto flex flex -col gap-3 w-full py-2" >
71
+ < div className = "flex max-h-[25vh] w-full flex-col gap-3 overflow-y-auto py-2" >
72
72
{ track . problems . map ( ( topic : any , idx : number ) => (
73
73
< Link key = { topic . id } href = { `/tracks/${ track . id } /${ track . problems [ idx ] ?. id } ` } >
74
- < div className = "cursor-pointer hover:-translate-y-1 flex items-center justify-between bg-primary/5 rounded-lg px-4 py-3 hover:bg-primary/10 transition-all duration-300 scroll-smooth w-full " >
74
+ < div className = "bg-primary/5 hover:bg-primary/10 flex w-full cursor-pointer items-center justify-between scroll-smooth rounded-lg px-4 py-3 transition-all duration-300 hover:-translate-y-1 " >
75
75
{ topic . title }
76
76
< ArrowRight className = "size-4" />
77
77
</ div >
@@ -82,7 +82,7 @@ export function TrackPreview({ showPreview, setShowPreview, track }: TrackPrevie
82
82
< Link href = { track . problems . length ? `/tracks/${ track . id } /${ track . problems [ 0 ] ?. id } ` : "" } >
83
83
< Button
84
84
size = { "lg" }
85
- className = "flex items-center justify-center bg-blue-600 text-white hover:bg-blue-500 transition-all duration-300"
85
+ className = "flex items-center justify-center bg-blue-600 text-white transition-all duration-300 hover:bg-blue-500 "
86
86
onClick = { ( e ) => e . stopPropagation ( ) }
87
87
>
88
88
Start
0 commit comments