From 382defbc91a8ef8d0c4ee4793c42d1846e5db1c2 Mon Sep 17 00:00:00 2001 From: aqquq <jannik.wurche@student.uni-halle.de> Date: Tue, 2 Jul 2024 09:13:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BC=20put=20SVG=20and=20IMG=20in=20spe?= =?UTF-8?q?cial=20<div>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Pages/QuizView.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Pages/QuizView.elm b/src/Pages/QuizView.elm index 13a6c4b..81149e3 100644 --- a/src/Pages/QuizView.elm +++ b/src/Pages/QuizView.elm @@ -60,10 +60,10 @@ displayQuestion q = Just hint -> LaTeX.Expression.compile hint _ -> div [ class "invisible" ] [] imageDiv = case q.image of - Just url -> img [ src url ] [ ] - Nothing -> div [ class "invisible" ] [] + Just url -> div [ class "imgDiv" ] [ img [ src url ] [ ] ] + Nothing -> div [ class "invisible" ] [] funcDiv = case q.graph of - Just gr -> generateSVG {functions = gr.functions, window = gr.window} + Just gr -> div [ class "svgDiv" ] [ generateSVG {functions = gr.functions, window = gr.window} ] Nothing -> div [ class "invisible" ] [] answerDiv = case q.questionType of MCQ x -> displayMCQ q.id x -- GitLab