From 1ea6587e82f12bc42bc5f450679f3b45c63102c2 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sat, 1 Jan 2022 12:25:20 +0200 Subject: [PATCH] Clean up utility classes --- .../tournament/DuringMatchActions.tsx | 10 ++--- .../tournament/EliminationBracket.tsx | 4 +- .../manage-roster.tsx | 14 +++++-- .../to/$organization.$tournament/seeds.tsx | 2 +- .../to/$organization.$tournament/start.tsx | 2 +- app/styles/global.css | 38 +------------------ app/styles/tournament-bracket.css | 6 +++ app/styles/tournament-manage-roster.css | 12 ++++++ 8 files changed, 39 insertions(+), 49 deletions(-) diff --git a/app/components/tournament/DuringMatchActions.tsx b/app/components/tournament/DuringMatchActions.tsx index 43b8d114d..f974653d1 100644 --- a/app/components/tournament/DuringMatchActions.tsx +++ b/app/components/tournament/DuringMatchActions.tsx @@ -24,9 +24,7 @@ export function DuringMatchActions({ const [, parentRoute] = useMatches(); const { teams, seeds } = parentRoute.data as FindTournamentByNameForUrlI; const [joinedRoom, setJoinedRoom] = useState( - true || - (currentMatch.score?.[0] ?? 0) > 0 || - (currentMatch.score?.[1] ?? 0) > 0 + (currentMatch.score?.[0] ?? 0) > 0 || (currentMatch.score?.[1] ?? 0) > 0 ); const opponentTeam = teams.find( @@ -94,8 +92,10 @@ export function DuringMatchActions({ return ( -

Opponent: {opponentTeam.name}

-
    +

    + Opponent: {opponentTeam.name} +

    +
    1. Add FC: {friendCodeToAdd}
    2. {weHost ? (
    3. diff --git a/app/components/tournament/EliminationBracket.tsx b/app/components/tournament/EliminationBracket.tsx index 201c6e6c3..7365618a1 100644 --- a/app/components/tournament/EliminationBracket.tsx +++ b/app/components/tournament/EliminationBracket.tsx @@ -169,7 +169,7 @@ export function Match({ {match.participants?.[0]}{" "} {match.score?.[0] ?? 0} @@ -190,7 +190,7 @@ export function Match({ {match.participants?.[1]}{" "} {match.score?.[1] ?? 0} diff --git a/app/routes/to/$organization.$tournament/manage-roster.tsx b/app/routes/to/$organization.$tournament/manage-roster.tsx index dfcac5528..66e3f5adb 100644 --- a/app/routes/to/$organization.$tournament/manage-roster.tsx +++ b/app/routes/to/$organization.$tournament/manage-roster.tsx @@ -217,7 +217,7 @@ export default function ManageRosterPage() { -
      +
      -
      -
      +
      -
      diff --git a/app/routes/to/$organization.$tournament/seeds.tsx b/app/routes/to/$organization.$tournament/seeds.tsx index 83e52fb96..67b7ff5d6 100644 --- a/app/routes/to/$organization.$tournament/seeds.tsx +++ b/app/routes/to/$organization.$tournament/seeds.tsx @@ -169,7 +169,7 @@ export default function SeedsTab() { "sortable", { disabled: transition.state !== "idle", - "visibility-hidden": activeTeam?.id === team.id, + invisible: activeTeam?.id === team.id, } )} > diff --git a/app/routes/to/$organization.$tournament/start.tsx b/app/routes/to/$organization.$tournament/start.tsx index 14dd02255..1919db342 100644 --- a/app/routes/to/$organization.$tournament/start.tsx +++ b/app/routes/to/$organization.$tournament/start.tsx @@ -122,7 +122,7 @@ export default function StartBracketTab() { }; return ( -
      + component */ + margin-block-end: 0 !important; + margin-inline-start: var(--s-2); +} + .tournament__manage-roster__input__button { margin-block-start: var(--s-4); }