From d61592b73e0f6a61eef473d6283995d24690b2c1 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 18 Apr 2023 12:12:26 +0100 Subject: [PATCH] Made some of the code a bit more responsive --- src/components/Exercises/FillBlanks.tsx | 12 ++++++------ src/components/LevelLabel.tsx | 2 +- src/components/LevelProgressBar.tsx | 2 +- src/components/Navbar.tsx | 14 +++++++++++--- src/components/ProfileCard.tsx | 8 ++++---- src/exams/Finish.tsx | 5 ++--- src/exams/Reading.tsx | 21 ++++++++++++--------- src/exams/Selection.tsx | 2 +- src/pages/exam/index.tsx | 8 ++++---- src/pages/index.tsx | 21 ++++++++++----------- 10 files changed, 52 insertions(+), 43 deletions(-) diff --git a/src/components/Exercises/FillBlanks.tsx b/src/components/Exercises/FillBlanks.tsx index 6172b32b..1a670d33 100644 --- a/src/components/Exercises/FillBlanks.tsx +++ b/src/components/Exercises/FillBlanks.tsx @@ -44,20 +44,20 @@ function WordsPopout({words, isOpen, onCancel, onAnswer}: WordsPopoutProps) { List of words -
+
{words.map((word) => ( ))}
-
@@ -100,7 +100,7 @@ export default function FillBlanks({id, allowRepetition, prompt, solutions, text return ( <> -
+
({word, isDisabled: allowRepetition ? false : userSolutions.map((x) => x.solution).includes(word)}))} isOpen={!!currentBlankId} @@ -110,7 +110,7 @@ export default function FillBlanks({id, allowRepetition, prompt, solutions, text setCurrentBlankId(undefined); }} /> - + {prompt.split("\\n").map((line, index) => ( {line} @@ -128,7 +128,7 @@ export default function FillBlanks({id, allowRepetition, prompt, solutions, text
-
+
- -
-
+
+
-
+