Evita lo scroll orizzontale nei filtri della classifica giocatori
I pill (Presenze, Media voto, MVP, Palloni, Cacche/partita) andavano su una riga scrollabile orizzontalmente; ora vanno a capo con flex-wrap. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -264,14 +264,14 @@ function Squadra() {
|
|||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section titolo="Classifica giocatori">
|
<Section titolo="Classifica giocatori">
|
||||||
<div className="-mx-5 mb-3 flex gap-2 overflow-x-auto px-5 pb-1">
|
<div className="mb-3 flex flex-wrap gap-2">
|
||||||
{criteri.map((c) => (
|
{criteri.map((c) => (
|
||||||
<button
|
<button
|
||||||
key={c.id}
|
key={c.id}
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => setCriterio(c.id)}
|
onClick={() => setCriterio(c.id)}
|
||||||
className={cn(
|
className={cn(
|
||||||
"shrink-0 rounded-full px-3 py-1.5 text-xs font-bold uppercase transition-colors",
|
"rounded-full px-3 py-1.5 text-xs font-bold uppercase transition-colors",
|
||||||
criterio === c.id
|
criterio === c.id
|
||||||
? "bg-accent text-accent-foreground shadow-pop"
|
? "bg-accent text-accent-foreground shadow-pop"
|
||||||
: "bg-secondary text-muted-foreground",
|
: "bg-secondary text-muted-foreground",
|
||||||
|
|||||||
Reference in New Issue
Block a user