From ed11d6f9d6379b4e1b6cc678b8b3e28ec1046e0c Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 20 Apr 2023 22:55:24 +0100 Subject: [PATCH] Improved the solutions to be more mobile friendly --- src/components/Exercises/MultipleChoice.tsx | 8 ++++---- src/components/Solutions/FillBlanks.tsx | 22 ++++++++++++++------- src/components/Solutions/MatchSentences.tsx | 15 +++++++++++--- src/components/Solutions/MultipleChoice.tsx | 7 ++++--- src/components/Solutions/WriteBlanks.tsx | 4 ++-- src/exams/Listening.tsx | 6 ++++-- 6 files changed, 41 insertions(+), 21 deletions(-) diff --git a/src/components/Exercises/MultipleChoice.tsx b/src/components/Exercises/MultipleChoice.tsx index f14403ef..72516c98 100644 --- a/src/components/Exercises/MultipleChoice.tsx +++ b/src/components/Exercises/MultipleChoice.tsx @@ -52,8 +52,8 @@ function Question({ return (
- {prompt} -
+ {prompt} +
{variant === "image" && options.map((option) => (
-
- {prompt} +
+ {prompt} {questionIndex < questions.length && ( { @@ -44,26 +45,33 @@ export default function FillBlanksSolutions({prompt, solutions, text, userSoluti return ( <> -
- {prompt} +
+ + {prompt.split("\\n").map((line, index) => ( + + {line} +
+
+ ))} +
- {text.split("\\n").map((line) => ( - <> + {text.split("\\n").map((line, index) => ( + {renderLines(line)}
- +
))}
-
+
- - -