From 485f726491cb85d919189a1565b953c6a09bd440 Mon Sep 17 00:00:00 2001 From: gewfy Date: Thu, 7 Nov 2024 22:14:43 +0100 Subject: [PATCH] Minor style fixes --- web/src/lib/components/ExerciseModal.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/web/src/lib/components/ExerciseModal.tsx b/web/src/lib/components/ExerciseModal.tsx index 50c498823f..35290bb5d5 100644 --- a/web/src/lib/components/ExerciseModal.tsx +++ b/web/src/lib/components/ExerciseModal.tsx @@ -15,7 +15,6 @@ import { Spacer8, } from '../../../../client/src/lib/components/Spacers/Spacer'; import CardGraphic from '../../../../client/src/lib/components/CardGraphic/CardGraphic'; -import useTags from '../../../../client/src/lib/content/hooks/useTags'; import useGetSessionCardTags from '../../../../client/src/lib/components/Cards/SessionCard/hooks/useGetSessionCardTags'; import {SessionMode} from '../../../../shared/src/schemas/Session'; import Tag from '../../../../client/src/lib/components/Tag/Tag'; @@ -87,6 +86,7 @@ const Graphic = styled.div({ const Tags = styled.div({ display: 'flex', flexDirection: 'row', + flexWrap: 'wrap', alignItems: 'center', }); @@ -114,6 +114,7 @@ const ModeIcon = styled.div({ const CoCreators = styled.div({ display: 'flex', flexDirection: 'row', + flexWrap: 'wrap', }); const CoCreator = styled(Link)({ @@ -123,6 +124,9 @@ const CoCreator = styled(Link)({ alignItems: 'center', textDecoration: 'none', textAlign: 'center', + marginRight: 16, + marginTop: 8, + marginBottom: 8, }); const CoCreatorImage = styled.img({ @@ -157,20 +161,20 @@ const ExerciseModal = ({ {exercise.name} {exercise.description} - - {tags.map((tag, i) => ( - - {tag} - - - ))} - + + {tags.map((tag, i) => ( + + {tag} + + + ))} + {t('startHeading')} @@ -193,7 +197,6 @@ const ExerciseModal = ({ <> {t('coCreatorsHeading')} - {exercise.coCreators.map(coCreator => ( @@ -202,7 +205,6 @@ const ExerciseModal = ({ {coCreator.name} - ))}