diff --git a/lib/components/ViewPublicationPage/ResultForm.tsx b/lib/components/ViewPublicationPage/ResultForm.tsx index 4d17df1..267130a 100644 --- a/lib/components/ViewPublicationPage/ResultForm.tsx +++ b/lib/components/ViewPublicationPage/ResultForm.tsx @@ -8,11 +8,11 @@ import { import { NameplateLogo } from "@icons/NameplateLogo"; import YoutubeEmbedIframe from "./tools/YoutubeEmbedIframe"; -import { setCurrentQuizStep } from "@stores/quizView"; import { useQuizData } from "@utils/hooks/useQuizData"; import { quizThemes } from "@utils/themes/Publication/themePublication"; import { useRootContainerSize } from "../../contexts/RootContainerWidthContext"; import type { QuizQuestionResult } from "../../model/questionTypes/result"; +import { setCurrentQuizStep } from "@stores/quizView"; type ResultFormProps = { @@ -132,6 +132,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => { mt: "15px", gap: "10px", textDecoration: "none", + mb: "5px" }} > { display: "flex", justifyContent: "center", alignItems: "center", - p: settings.cfg.resultInfo.showResultForm === "before" || + p: + ( + settings.cfg.resultInfo.showResultForm === "before" && + !Boolean(settings.cfg.score) + ) || ( settings.cfg.resultInfo.showResultForm === "after" && resultQuestion.content.redirect - ) ? "20px" : "0", + ) + ? "20px" : "0", }} > - {settings.cfg.resultInfo.showResultForm === "before" && ( + {settings.cfg.resultInfo.showResultForm === "before" && !Boolean(settings.cfg.score) && (