Seeds page visual tweaks

This commit is contained in:
Kalle (Sendou)
2022-01-06 16:14:25 +02:00
parent 4a2dfac884
commit b7846ec5fe
2 changed files with 10 additions and 4 deletions

View File

@@ -176,7 +176,6 @@ function SeedAlert({
return (
<Form method="post" className="tournament__seeds__form">
<input type="hidden" name="_action" value="UPDATE_SEEDS" />
<input type="hidden" name="tournamentId" value={tournamentId} />
<input type="hidden" name="seeds" value={JSON.stringify(teamOrder)} />
<Alert
@@ -206,7 +205,7 @@ function SeedAlert({
);
}
const RowContents = React.memo(function RowContents({
function RowContents({
team,
seed,
}: {
@@ -228,6 +227,6 @@ const RowContents = React.memo(function RowContents({
</ol>
</>
);
});
}
export const CatchBoundary = Catcher;

View File

@@ -59,11 +59,12 @@
display: flex;
padding: 0;
counter-reset: list;
gap: var(--s-2);
overflow-x: auto;
}
.tournament__seeds__members-list > li {
list-style: none;
margin-inline-start: var(--s-3);
white-space: nowrap;
}
@@ -72,3 +73,9 @@
content: counter(list) ") ";
counter-increment: list;
}
@media screen and (min-width: 768px) {
.tournament__seeds__members-list {
overflow-x: visible;
}
}