fix: settingOpytionsPict logic
This commit is contained in:
parent
eeb6bb5e35
commit
123a26a436
@ -154,19 +154,22 @@ export default function SettingOpytionsPict({
|
||||
})
|
||||
}
|
||||
/>
|
||||
<CustomCheckbox
|
||||
sx={{ display: "block", mr: isMobile ? "0px" : "16px" }}
|
||||
label={"Большие картинки"}
|
||||
checked={listQuestions[quizId][totalIndex].content.largeCheck}
|
||||
handleChange={({ target }) =>
|
||||
updateQuestionsList(quizId, totalIndex, {
|
||||
content: {
|
||||
...listQuestions[quizId][totalIndex].content,
|
||||
largeCheck: target.checked,
|
||||
},
|
||||
})
|
||||
}
|
||||
/>
|
||||
{listQuestions[quizId][totalIndex].content.xy !== "1:1" &&
|
||||
listQuestions[quizId][totalIndex].content.format !== "masonry" && (
|
||||
<CustomCheckbox
|
||||
sx={{ display: "block", mr: isMobile ? "0px" : "16px" }}
|
||||
label={"Большие картинки"}
|
||||
checked={listQuestions[quizId][totalIndex].content.largeCheck}
|
||||
handleChange={({ target }) =>
|
||||
updateQuestionsList(quizId, totalIndex, {
|
||||
content: {
|
||||
...listQuestions[quizId][totalIndex].content,
|
||||
largeCheck: target.checked,
|
||||
},
|
||||
})
|
||||
}
|
||||
/>
|
||||
)}
|
||||
<CustomCheckbox
|
||||
sx={{ display: "block", mr: isMobile ? "0px" : "16px" }}
|
||||
label={'Вариант "свой ответ"'}
|
||||
@ -182,12 +185,22 @@ export default function SettingOpytionsPict({
|
||||
/>
|
||||
</Box>
|
||||
<Box sx={{ padding: "20px", minWidth: isMobile ? "100%" : "350px" }}>
|
||||
<Typography sx={{ marginBottom: "15px" }}>Форма</Typography>
|
||||
<Typography
|
||||
sx={{
|
||||
marginBottom: "15px",
|
||||
opacity:
|
||||
listQuestions[quizId][totalIndex].content.xy === "1:1" ? 0 : 1,
|
||||
}}
|
||||
>
|
||||
Формат
|
||||
</Typography>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
gap: "10px",
|
||||
marginBottom: "20px",
|
||||
opacity:
|
||||
listQuestions[quizId][totalIndex].content.xy === "1:1" ? 0 : 1,
|
||||
}}
|
||||
>
|
||||
<SelectIconButton
|
||||
@ -234,7 +247,13 @@ export default function SettingOpytionsPict({
|
||||
})
|
||||
}
|
||||
/>
|
||||
<Box sx={{ width: isMobile ? "90%" : "auto", display: "flex", alignItems: "center" }}>
|
||||
<Box
|
||||
sx={{
|
||||
width: isMobile ? "90%" : "auto",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<CustomCheckbox
|
||||
label={"Внутреннее название вопроса"}
|
||||
checked={listQuestions[quizId][totalIndex].content.innerNameCheck}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user