From 12945fb90b2a405ee973360a97cf997ac2595869 Mon Sep 17 00:00:00 2001 From: Bryan Jennings Date: Sat, 24 Sep 2022 10:24:52 -0700 Subject: [PATCH] Make DOJO solve exercises button 100% on small width --- pages/exercises/[lessonSlug].tsx | 17 ++++++++++++----- scss/exercises.module.scss | 6 ++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/pages/exercises/[lessonSlug].tsx b/pages/exercises/[lessonSlug].tsx index e1770e34c..cdb48d486 100644 --- a/pages/exercises/[lessonSlug].tsx +++ b/pages/exercises/[lessonSlug].tsx @@ -169,11 +169,18 @@ const ExerciseList = ({ tabs={tabs} /> -
-

{lessonTitle}

- setExerciseIndex(0)}> - SOLVE EXERCISES - +
+

{lessonTitle}

+
+ setExerciseIndex(0)} + > + SOLVE EXERCISES + +
{mockExercisePreviews.map((exercisePreview, i) => ( diff --git a/scss/exercises.module.scss b/scss/exercises.module.scss index 13fed2039..59a0e5c92 100644 --- a/scss/exercises.module.scss +++ b/scss/exercises.module.scss @@ -3,3 +3,9 @@ grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2em; } + +.exerciseList__solveExercisesButtonContainer { + @media (max-width: 767px) { + width: 100%; + } +}