квадратная картинка в результатах

This commit is contained in:
Tamara 2024-04-09 02:38:44 +03:00
parent 5a3f90e603
commit ff72f06e5c

@ -120,17 +120,20 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
} }
{ {
resultQuestion?.content.useImage && resultQuestion.content.back && ( resultQuestion?.content.useImage && resultQuestion.content.back && (
<Box sx={{width: "100%", display: "flex", justifyContent: "center"}}>
<Box <Box
component="img" component="img"
src={resultQuestion.content.back} src={resultQuestion.content.back}
sx={{ sx={{
width: "100%", width: "100%",
maxWidth: "844px", maxWidth: "306px",
height: spec ? "auto" : isMobile ? "236px" : "306px", height: spec ? "auto" : isMobile ? "236px" : "306px",
borderRadius: "8px", borderRadius: "8px",
objectFit: "contain", objectFit: "contain",
}} }}
/> />
</Box>
) )
} }
{resultQuestion.description !== "" && {resultQuestion.description !== "" &&