@@ -164,8 +164,7 @@ function FullAscensionCosts({ template, costTemplates }: { template: CostTemplat
164164 . filter ( ( _ , i , arr ) => expanded ? true : ( i == arr . length - 1 ) ) }
165165 { ! expanded && < tr className = "pr-1 cursor-pointer text-blue-700 dark:text-blue-300 hover:text-blue-400 dark:hover:text-blue-400 no-underline transition-all duration-200 font-semibold" >
166166 < td colSpan = { costs [ costs . length - 1 ] . items . length + 2 } style = { ( { textAlign : "center" } ) } > Click to expand...</ td >
167- </ tr >
168- }
167+ </ tr > }
169168 </ tbody >
170169 </ table >
171170 </ >
@@ -327,7 +326,7 @@ function Talent({ talent, costTemplates }: { talent: Skill, costTemplates: CostT
327326 { talent . icon && < Icon icon = { talent } className = "rounded-xl w-12 inline-block" /> }
328327 < ReactMarkdown > { ( talent . desc ?. replace ( / ? \$ \{ .* ?\} / g, "" ) ?? "" ) } </ ReactMarkdown >
329328 { talent . talentTable && < TalentTable table = { talent . talentTable } /> }
330- { talent . costs && < TalentCost template = { talent . costs } costTemplates = { costTemplates } /> }
329+ { talent . costs && ! Array . isArray ( talent . costs ) && < TalentCost template = { talent . costs } costTemplates = { costTemplates } /> }
331330 { talent . video }
332331 </ div >
333332}
@@ -363,8 +362,7 @@ function TalentCost({ template, costTemplates }: { template: CostTemplate, costT
363362 . filter ( ( _ , i , arr ) => expanded ? true : ( i == arr . length - 1 ) ) }
364363 { ! expanded && < tr className = "pr-1 cursor-pointer text-blue-700 dark:text-blue-300 hover:text-blue-400 dark:hover:text-blue-400 no-underline transition-all duration-200 font-semibold" >
365364 < td colSpan = { maxCostWidth + 2 } style = { ( { textAlign : "center" } ) } > Click to expand...</ td >
366- </ tr >
367- }
365+ </ tr > }
368366 </ tbody >
369367 </ table >
370368}
@@ -392,7 +390,7 @@ function TalentTable({ table }: { table: (TalentTable | TalentValue)[] }) {
392390 }
393391
394392 return < div className = "overflow-x-auto" >
395- < table className = { `table-auto w-full ${ styles . table } mb-2 sm:text-sm md:text-base text-xs` } >
393+ < table className = { `${ maxLevel > 3 ? " table-auto" : "table-fixed" } w-full ${ styles . table } mb-2 sm:text-sm md:text-base text-xs` } >
396394 < thead className = "font-semibold divide-x divide-gray-200 dark:divide-gray-500" >
397395 < td > Name</ td >
398396 { levels . map ( ( i ) => < td key = { i } > Lv. { i + 1 } </ td > ) }
0 commit comments