This commit is contained in:
Nastya 2024-02-21 12:11:45 +03:00
parent 1ceee79a02
commit 419bbef319
2 changed files with 4 additions and 3 deletions

@ -23,6 +23,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
const theme = useTheme(); const theme = useTheme();
const isMobile = useRootContainerSize() < 650; const isMobile = useRootContainerSize() < 650;
const { settings } = useQuizData(); const { settings } = useQuizData();
const spec = settings.cfg.spec
return ( return (
<Box <Box
@ -63,8 +64,8 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
component="img" component="img"
src={resultQuestion.content.back} src={resultQuestion.content.back}
sx={{ sx={{
width: isMobile ? "100%" : "490px", width: spec ? "auto" : isMobile ? "100%" : "490px",
height: isMobile ? "100%" : "280px", height: spec ? "auto" : isMobile ? "100%" : "280px",
}} }}
></Box> ></Box>
) )

@ -153,7 +153,7 @@ const TextNormal = ({currentQuestion, answer, inputHC}: Props) => {
> >
<Typography variant="h5" color={theme.palette.text.primary} sx={{ wordBreak: "break-word" }}>{currentQuestion.title}</Typography> <Typography variant="h5" color={theme.palette.text.primary} sx={{ wordBreak: "break-word" }}>{currentQuestion.title}</Typography>
{isHorizontal && currentQuestion.content.back && currentQuestion.content.back !== " " && ( {isHorizontal && currentQuestion.content.back && currentQuestion.content.back !== " " && (
<Box sx={{margin: "15px", width: "50vw", maxHeight: "550px" }}> <Box sx={{margin: "30px", width: "50vw", maxHeight: "550px" }}>
<img <img
key={currentQuestion.id} key={currentQuestion.id}
src={currentQuestion.content.back} src={currentQuestion.content.back}