From: Daniel Karbach Date: Wed, 30 Mar 2022 08:31:21 +0000 (+0200) Subject: sticky sidebar X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=dd283dc4c2004cbeb36d17b878bb67f94d75d06a;p=alttp.git sticky sidebar --- diff --git a/resources/js/components/tournament/Detail.js b/resources/js/components/tournament/Detail.js index cfea60d..b6afe90 100644 --- a/resources/js/components/tournament/Detail.js +++ b/resources/js/components/tournament/Detail.js @@ -52,32 +52,34 @@ const Detail = ({ -
-

{i18n.t('tournaments.scoreboard')}

+
+
+

{i18n.t('tournaments.scoreboard')}

+
+ {hasRunners(tournament) ? + + : null} + {hasTournamentAdmins(tournament) ? + <> +
+

{i18n.t('tournaments.admins')}

+
+ {getTournamentAdmins(tournament).map(p => +

+ )} + + : null} + {hasTournamentMonitors(tournament) ? + <> +
+

{i18n.t('tournaments.monitors')}

+
+ {getTournamentMonitors(tournament).map(p => +

+ )} + + : null}
- {hasRunners(tournament) ? - - : null} - {hasTournamentAdmins(tournament) ? - <> -
-

{i18n.t('tournaments.admins')}

-
- {getTournamentAdmins(tournament).map(p => -

- )} - - : null} - {hasTournamentMonitors(tournament) ? - <> -
-

{i18n.t('tournaments.monitors')}

-
- {getTournamentMonitors(tournament).map(p => -

- )} - - : null}
diff --git a/resources/sass/tournaments.scss b/resources/sass/tournaments.scss index 617125f..d142193 100644 --- a/resources/sass/tournaments.scss +++ b/resources/sass/tournaments.scss @@ -1,3 +1,8 @@ +.tournament-sidebar { + position: sticky; + top: 1rem; +} + .scoreboard { .score { &.is-self {