mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-27 21:55:15 -05:00
Handle team map pool display when 6 maps
This commit is contained in:
@@ -4,6 +4,7 @@ import { ModeImage, StageImage } from "~/components/Image";
|
||||
import { userPage } from "~/utils/urls";
|
||||
import type { FindTeamsByTournamentIdItem } from "../queries/findTeamsByTournamentId.server";
|
||||
import type { TournamentLoaderData } from "./to.$id";
|
||||
import clsx from "clsx";
|
||||
|
||||
export default function TournamentTeamsPage() {
|
||||
const data = useOutletContext<TournamentLoaderData>();
|
||||
@@ -56,7 +57,12 @@ function TeamMapPool({
|
||||
mapPool: NonNullable<FindTeamsByTournamentIdItem["mapPool"]>;
|
||||
}) {
|
||||
return (
|
||||
<div className="tournament__team-with-roster__map-pool">
|
||||
<div
|
||||
className={clsx("tournament__team-with-roster__map-pool", {
|
||||
"tournament__team-with-roster__map-pool__3-columns":
|
||||
mapPool.length % 3 === 0,
|
||||
})}
|
||||
>
|
||||
{mapPool.map(({ mode, stageId }, i) => {
|
||||
return (
|
||||
<div key={i}>
|
||||
|
||||
@@ -138,6 +138,10 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tournament__team-with-roster__map-pool.tournament__team-with-roster__map-pool__3-columns {
|
||||
grid-template-columns: max-content max-content max-content;
|
||||
}
|
||||
|
||||
.tournament__team-with-roster__map-pool__mode-info {
|
||||
background-color: var(--bg-darker);
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user