mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 07:00:14 +02:00
Improve quiz page layouts: WIDM-style answers and responsive centering
- Add green square answer buttons styled after the TV show - Two-column answer grid for 6+ answers, single column on mobile - fit-content centering for question pages so block matches question width - Narrow fixed-width centering for form pages (enter name, select season)
This commit is contained in:
@@ -127,6 +127,7 @@ final class QuizSpreadsheetServiceTest extends TestCase
|
||||
$question = new Question();
|
||||
$question->question = 'Unanswered question';
|
||||
$question->ordering = 1;
|
||||
|
||||
$quiz->addQuestion($question);
|
||||
|
||||
$path = $this->captureXlsx($this->subject->quizToXlsx($quiz));
|
||||
@@ -134,8 +135,8 @@ final class QuizSpreadsheetServiceTest extends TestCase
|
||||
try {
|
||||
$this->subject->xlsxToQuiz(new Quiz(), new File($path));
|
||||
$this->fail('Expected SpreadsheetDataException to be thrown');
|
||||
} catch (SpreadsheetDataException $e) {
|
||||
$this->assertNotEmpty($e->errors);
|
||||
} catch (SpreadsheetDataException $spreadsheetDataException) {
|
||||
$this->assertNotEmpty($spreadsheetDataException->errors);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user