Improved the solutions to be more mobile friendly

This commit is contained in:
Tiago Ribeiro
2023-04-20 22:55:24 +01:00
parent 02d76e4c3c
commit ed11d6f9d6
6 changed files with 41 additions and 21 deletions

View File

@@ -71,7 +71,7 @@ export default function Listening({exam, showSolutions = false, onFinish}: Props
return (
<>
<div className="w-full h-full relative flex flex-col gap-8 items-center justify-center p-8 px-16 overflow-hidden">
<div className="w-full relative flex flex-col gap-8 items-center justify-center p-8 px-16 overflow-hidden">
{renderAudioPlayer()}
{exerciseIndex > -1 &&
exerciseIndex < exam.exercises.length &&
@@ -82,7 +82,9 @@ export default function Listening({exam, showSolutions = false, onFinish}: Props
showSolutions &&
renderSolution(exam.exercises[exerciseIndex], nextExercise, previousExercise)}
{exerciseIndex === -1 && (
<button className={clsx("btn btn-wide gap-4 relative text-white self-end", infoButtonStyle)} onClick={() => nextExercise()}>
<button
className={clsx("btn md:btn-wide w-full gap-4 relative text-white self-end", infoButtonStyle)}
onClick={() => nextExercise()}>
Next
<div className="absolute right-4">
<Icon path={mdiArrowRight} color="white" size={1} />