added number sorting to graphs and updated the graph for repeated days showcase

This commit is contained in:
jenz
2026-08-26 09:18:49 +02:00
parent 0634fde335
commit ed02682ef4
4 changed files with 278 additions and 34 deletions
@@ -103,13 +103,14 @@ export default function PlayerSearch() {
) : players.length === 0 ? (
<div className="p-4 text-sm text-ink-muted">No players found.</div>
) : (
players.map((p) => (
players.map((p, i) => (
<Link
key={p.steamid}
href={`/players/${encodeURIComponent(p.steamid)}`}
className="flex items-center justify-between px-4 py-3 hover:bg-base transition-colors"
>
<div className="flex items-center gap-3">
<span className="text-ink-faint text-xs w-8 text-right shrink-0">{i + 1}</span>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={p.avatarUrl}