From dd283dc4c2004cbeb36d17b878bb67f94d75d06a Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 30 Mar 2022 10:31:21 +0200 Subject: [PATCH] sticky sidebar --- resources/js/components/tournament/Detail.js | 52 ++++++++++---------- resources/sass/tournaments.scss | 5 ++ 2 files changed, 32 insertions(+), 25 deletions(-) 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 { -- 2.39.2