ランキングのデザイン変更
This commit is contained in:
parent
28c2395a2c
commit
9168e362ad
1 changed files with 31 additions and 20 deletions
|
@ -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>
|
|
||||||
<tr>
|
|
||||||
<th>{t('_missHai.order')}</th>
|
|
||||||
<th>{t('name')}</th>
|
|
||||||
<th>{t('_missHai.rating')}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{response.ranking.map((r, i) => (
|
{response.ranking.map((r, i) => (
|
||||||
<tr key={i}>
|
<a href={`https://${r.host}/@${r.username}`} target="_blank" rel="noopener noreferrer nofollow" className="item flex" key={i}>
|
||||||
<td>{i + 1}</td>
|
<div className="text-bold pr-2">{i + 1}</div>
|
||||||
<td>
|
<div>
|
||||||
{r.username}@{r.host}
|
{r.username}@{r.host}<br/>
|
||||||
</td>
|
<span className="text-dimmed text-75">{t('_missHai.rating')}: {r.rating}</span>
|
||||||
<td>{r.rating}</td>
|
</div>
|
||||||
</tr>
|
</a>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
// <table className="table mt-1 fluid">
|
||||||
|
// <thead>
|
||||||
|
// <tr>
|
||||||
|
// <th>{t('_missHai.order')}</th>
|
||||||
|
// <th>{t('name')}</th>
|
||||||
|
// <th>{t('_missHai.rating')}</th>
|
||||||
|
// </tr>
|
||||||
|
// </thead>
|
||||||
|
// <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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue