@@ -80,37 +80,41 @@ export default function GlobalLeaderboardPage() {
8080 </ div >
8181 ) : (
8282 < div className = "rounded-md border border-brand-cyan/20 overflow-x-auto bg-black/20 w-full max-w-full" >
83- < Table className = "w-full min-w-[700px]" >
83+ < Table className = "w-full min-w-[700px] table-fixed " >
8484 < TableHeader >
8585 < TableRow className = "border-brand-cyan/20 hover:bg-transparent" >
8686 < TableHead className = "text-brand-cyan w-12 text-center" > #</ TableHead >
87- < TableHead className = "text-brand-cyan" > Project</ TableHead >
88- < TableHead className = "text-brand-cyan" > Team</ TableHead >
89- < TableHead className = "text-brand-cyan" > Category</ TableHead >
90- < TableHead className = "text-brand-orange text-right" > Score</ TableHead >
87+ < TableHead className = "text-brand-cyan w-[34%] " > Project</ TableHead >
88+ < TableHead className = "text-brand-cyan w-[30%] " > Team</ TableHead >
89+ < TableHead className = "text-brand-cyan w-[18%] " > Category</ TableHead >
90+ < TableHead className = "text-brand-orange text-right w-[88px] " > Score</ TableHead >
9191 </ TableRow >
9292 </ TableHeader >
9393 < TableBody >
9494 { rankedData . finalists . map ( ( p , index ) => (
9595 < TableRow key = { `f-${ p . id } ` } className = "border-brand-cyan/10 hover:bg-brand-cyan/5 transition-colors" >
9696 < TableCell className = "text-brand-cyan/60 text-center font-bold" > { index + 1 } </ TableCell >
97- < TableCell className = "font-medium text-brand-cyan max-w-0 " >
97+ < TableCell className = "font-medium text-brand-cyan" >
9898 < span
99- className = "block truncate max-w-[140px] sm:max-w-[260px] md:max-w-[360px] "
99+ className = "block truncate w-full "
100100 title = { p . title || "Untitled" }
101101 >
102102 { p . title || "Untitled" }
103103 </ span >
104104 </ TableCell >
105- < TableCell className = "text-brand-cyan/80 max-w-0 " >
105+ < TableCell className = "text-brand-cyan/80" >
106106 < span
107- className = "block truncate max-w-[120px] sm:max-w-[220px] md:max-w-[300px] "
107+ className = "block truncate w-full "
108108 title = { p . teamName || "-" }
109109 >
110110 { p . teamName || "-" }
111111 </ span >
112112 </ TableCell >
113- < TableCell className = "text-brand-cyan/80" > { getCategoryName ( p . categoryId ) } </ TableCell >
113+ < TableCell className = "text-brand-cyan/80" >
114+ < span className = "block truncate w-full" title = { getCategoryName ( p . categoryId ) } >
115+ { getCategoryName ( p . categoryId ) }
116+ </ span >
117+ </ TableCell >
114118 < TableCell className = "text-right font-bold text-brand-orange" > { Math . round ( p . totalScore || 0 ) } </ TableCell >
115119 </ TableRow >
116120 ) ) }
@@ -130,23 +134,27 @@ export default function GlobalLeaderboardPage() {
130134 { rankedData . rest . map ( ( p , index ) => (
131135 < TableRow key = { `r-${ p . id } ` } className = "border-brand-cyan/10 hover:bg-brand-cyan/5 transition-colors" >
132136 < TableCell className = "text-brand-cyan/60 text-center font-bold" > { rankedData . finalists . length + index + 1 } </ TableCell >
133- < TableCell className = "font-medium text-brand-cyan max-w-0 " >
137+ < TableCell className = "font-medium text-brand-cyan" >
134138 < span
135- className = "block truncate max-w-[140px] sm:max-w-[260px] md:max-w-[360px] "
139+ className = "block truncate w-full "
136140 title = { p . title || "Untitled" }
137141 >
138142 { p . title || "Untitled" }
139143 </ span >
140144 </ TableCell >
141- < TableCell className = "text-brand-cyan/80 max-w-0 " >
145+ < TableCell className = "text-brand-cyan/80" >
142146 < span
143- className = "block truncate max-w-[120px] sm:max-w-[220px] md:max-w-[300px] "
147+ className = "block truncate w-full "
144148 title = { p . teamName || "-" }
145149 >
146150 { p . teamName || "-" }
147151 </ span >
148152 </ TableCell >
149- < TableCell className = "text-brand-cyan/80" > { getCategoryName ( p . categoryId ) } </ TableCell >
153+ < TableCell className = "text-brand-cyan/80" >
154+ < span className = "block truncate w-full" title = { getCategoryName ( p . categoryId ) } >
155+ { getCategoryName ( p . categoryId ) }
156+ </ span >
157+ </ TableCell >
150158 < TableCell className = "text-right font-bold text-brand-orange" > { Math . round ( p . totalScore || 0 ) } </ TableCell >
151159 </ TableRow >
152160 ) ) }
0 commit comments