diff --git a/src/pages/ViewPublicationPage/Footer.tsx b/src/pages/ViewPublicationPage/Footer.tsx index 1720dadc..ecabba0c 100644 --- a/src/pages/ViewPublicationPage/Footer.tsx +++ b/src/pages/ViewPublicationPage/Footer.tsx @@ -1,5 +1,5 @@ import { useState, useEffect } from "react"; -import { Box, Button, Typography, useTheme } from "@mui/material"; +import {Box, Button, Typography, useMediaQuery, useTheme} from "@mui/material"; import { useQuizViewStore } from "@root/quizView"; import { useCurrentQuiz } from "@root/quizes/hooks"; @@ -29,6 +29,7 @@ export const Footer = ({ setCurrentQuestion, question, setShowContactForm, setSh const { answers } = useQuizViewStore(); const questions = useQuestionsStore().questions as AnyTypedQuizQuestion[]; const theme = useTheme(); + const isMobileMini = useMediaQuery(theme.breakpoints.down(382)); const linear = !questions.find(({ content }) => content.rule.parentId === "root"); useEffect(() => { @@ -236,13 +237,11 @@ export const Footer = ({ setCurrentQuestion, question, setShowContactForm, setSh gap: "10px", }} > - {mode[quiz.config.theme] ? ( - - ):( - - ) - - } + {/*{mode[quiz.config.theme] ? (*/} + {/* */} + {/*):(*/} + {/* */} + {/*)}*/} {linear && <> Шаг @@ -265,7 +264,7 @@ export const Footer = ({ setCurrentQuestion, question, setShowContactForm, setSh width: "30px", height: "30px", color: "#FFF", - background: theme.palette.brightPurple.main, + background: theme.palette.primary.main, }} > {stepNumber} @@ -311,10 +310,16 @@ export const Footer = ({ setCurrentQuestion, question, setShowContactForm, setSh