0
0
Fork 0

ランキングのデザイン変更

This commit is contained in:
Xeltica 2022-06-09 12:41:56 +09:00
parent 28c2395a2c
commit 9168e362ad

View file

@ -50,26 +50,37 @@ export const Ranking: React.VFC<RankingProps> = ({limit}) => {
{response.isCalculating ? ( {response.isCalculating ? (
<p>{t('isCalculating')}</p> <p>{t('isCalculating')}</p>
) : ( ) : (
<table className="table mt-1 fluid"> <div className="menu large">
<thead> {response.ranking.map((r, i) => (
<tr> <a href={`https://${r.host}/@${r.username}`} target="_blank" rel="noopener noreferrer nofollow" className="item flex" key={i}>
<th>{t('_missHai.order')}</th> <div className="text-bold pr-2">{i + 1}</div>
<th>{t('name')}</th> <div>
<th>{t('_missHai.rating')}</th> {r.username}@{r.host}<br/>
</tr> <span className="text-dimmed text-75">{t('_missHai.rating')}: {r.rating}</span>
</thead> </div>
<tbody> </a>
{response.ranking.map((r, i) => ( ))}
<tr key={i}> </div>
<td>{i + 1}</td> // <table className="table mt-1 fluid">
<td> // <thead>
{r.username}@{r.host} // <tr>
</td> // <th>{t('_missHai.order')}</th>
<td>{r.rating}</td> // <th>{t('name')}</th>
</tr> // <th>{t('_missHai.rating')}</th>
))} // </tr>
</tbody> // </thead>
</table> // <tbody>
// {response.ranking.map((r, i) => (
// <tr key={i}>
// <td>{i + 1}</td>
// <td>
// {r.username}@{r.host}
// </td>
// <td>{r.rating}</td>
// </tr>
// ))}
// </tbody>
// </table>
)} )}
</> </>
) : null ) : null